Home > Media Player > How do I embed the Lightcast Media Player on our SSL (http(s)://) website?

How do I embed the Lightcast Media Player on our SSL (http(s)://) website?

There are 2 options on how you can embed the Lightcast Media Player onto your SSL secured websites:

1. Remove the SSL certificate from media pages on which the players are embedded, opting only to use the SSL certificate on payment pages. 

2. Using the LightcastAPI and adding &ssl=1 to the LightcastAPI call. For more details about this and other LightcastAPI parameters, just visit the "Developer Tools & API" page in the Lightcast Control Center.

3. Changing the player embed code for the Lightcast Player from http://embed.cdn01.net/ to https://www.lightcast.com/embed/…..

E.g.: 

<iframe src='http://embed.cdn01.net/player.php?width=640&height=360&skinColor=000000&autoStart=false&tvButtonID=lightcast&id=151350&type=' frameborder='0' width='640' height='360' allowfullscreen></iframe>

Test video: 

http://embed.cdn01.net/player.php?id=151350&type=&tvButtonID=lightcast&ratio=1280:720&autoStart=1&playlistPos=inside&width=640&height=360&playlistSize=350&skinColor=

Change to:   

<iframe src='https://www.lightcast.com/embed/player.php?width=640&height=360&skinColor=000000&autoStart=false&tvButtonID=lightcast&id=151350&type=' frameborder='0' width='640' height='360' allowfullscreen></iframe>

Test video:  

https://www.lightcast.com/embed/player.php?id=151350&type=&tvButtonID=lightcast&ratio=1280:720&autoStart=1&playlistPos=inside&width=640&height=360&playlistSize=350&skinColor=

When you copy and paste the player embed code onto your website, you only need to change the first part of the URL, as highlighted in yellow above. The URL https://www.lightcast.com/embed won’t be displayed in the “Embed Channel” or “Embed Video” feature in your Lightcast.com Control Center, but as described above, you can easily change the URL manually within your html code.