To build a Plugin SDK* integration with JW Player, follow JW Player’s embed instructions . You must contain the JW embed code within the "p3sdk-container" div.
Make sure the ID in your player div and the player instance in your script are both identical to your player_id (highlighted in pink).
<div class="p3sdk-container p3sdk-debug" player_id="jw-player-7" player_type="jw7">
<div id="jw-player-7">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("jw-player-7");
playerInstance.setup({
file: "http://videos.3playmedia.com.s3.amazonaws.com/10013/78983/3aba0b861bfc1a970782b09856fb1ff6.mp4",
image: "http://example.com/uploads/myPoster.jpg",
width: 640,
height: 360,
title: 'Basic Video Embed',
description: 'A video with a basic title and description!'
});
</script>
</div>*The Plugin SDK is sometimes referred to as "P3SDK".
0 Comments