Can I color the background of an embedded player?

Yes, if you are embedding an HTML5 player to distribute either a video or an image content type, you will be able to color its background in order to match it with the style of the web page. To do so you will simply have to provide the HEX code of the color as a string along with the "bgcolor" parameter.

 

The following is a sample of how your embed code should look like:

 

<html>
<head> <script type="text/javascript" src="//[clientId]-cdn.thron.com/shared/player/current/scripts/embedscript-min.js"></script>
</head>
<body>
<div id="#divIDHere" style="width:640px; height:480px"></div>
<script>//<![CDATA[
THRONPlayer("#divIDHere", {media: "//[clientId]-view.thron.com/api/xcontents/resources/delivery/getContentDetail?clientId=[clientId]&xcontentId=[xcontentId]&pkey=[pkey]", embedCodeId: "[embedCodeId]",
displayLinked: "open",
displayDownload: "open",
noSkin: false,
forceHTML5: true,
bgcolor: "#f39900",
autoPlay: false});
//]]></script>
</body>
</html>
Was this article helpful?
0 out of 0 found this helpful

Have any question?

Open a ticket
Comments