Can I embed more than one player within the same page?

Can I embed more than one player within the same page?

You can embed more than one player within the same page. The only care to use is to assign a different "id" for each <div> in which you are going to embed the player. The following is an example of three embedded players and the relative source code.

Note: Remember that the "id" of the <div> containing the embed code can not start with a number, otherwise the skin won't load correctly.

 

 

 

This is the code, try it yourself:

<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>
<div id="#divID2Here" style="width:640px; height:480px"></div>
<div id="#divID3Here" 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,
autoPlay: false});
//]]></script>
<script>//<![CDATA[
THRONPlayer("#divID2Here", {media: "//[clientId]-view.thron.com/api/xcontents/resources/delivery/getContentDetail?clientId=[clientId]&xcontentId=[xcontentId]&pkey=[pkey]", embedCodeId: "[embedCodeId]",
displayLinked: "open",
displayDownload: "open",
noSkin: false,
autoPlay: false});
//]]></script>
<script>//<![CDATA[
THRONPlayer("#divID3Here", {media: "//[clientId]-view.thron.com/api/xcontents/resources/delivery/getContentDetail?clientId=[clientId]&xcontentId=[xcontentId]&pkey=[pkey]", embedCodeId: "[embedCodeId]",
displayLinked: "open",
displayDownload: "open",
noSkin: false,
autoPlay: false});
//]]></script>
</body>
</html>
Was this article helpful?
0 out of 0 found this helpful

Have more questions?

SUBMIT A REQUEST

Hai altre domande?

INOLTRA UNA RICHIESTA

Comments