
JWplayer embed code
Hello...
We've been using JWplayer 6 for quite some time and are finally getting around to upgrade to JWplayer 8. We are currently embedding videos into our pages as seen below (in JWplayer 6), but since we're upgrading to JWplayer 8, I was wondering if there was anything that could edited, added or taken out. Other than switching the location of the player.js file and the key, the videos are playing perfectly fine. However, in Chrome for example, only our fallback mp4 plays and not the M3U8 since its calling the 'primary: flash'. We've tried to make the primary as html5, but that doesn't seem to matter. Can anyone offer any insight? Thanks.
<!--VIDEO EMBED CODE STARTS HERE-->
<!--Multi-Bitrate Generator Version 3.0-->
<script type="text/javascript" src="https://worldcampus.psu.edu/videoPlayer/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="our.key";</script>
<div id="video_MulticulturalMeeting">Loading the player</div>
<script>
var duration = 0;
jwplayer('video_MulticulturalMeeting').setup({
control: true,
skin: 'glow',
width: 640,
height: 360,
logo: {
file: 'https://courses.worldcampus.edu/videoPlayer/logos/wcWhite.png',
hide: true,
position: 'top-right',
},
playlist: [{
image: 'https://courses.worldcampus.edu/videoFiles/JPG/MulticulturalMeeting.jpg',
sources: [{
file: 'https://courses.worldcampus.edu/videoFiles/M3U8/MulticulturalMeeting.m3u8',
},{
file: 'https://wc-fms.outreach.edu/MulticulturalMeeting_Med.mp4'
}],
tracks: [{
file: 'https://courses.worldcampus.edu/videoFiles/SRT/MulticulturalMeeting.srt',
label: 'English',
kind: 'captions',
}]
}],
captions: {
back: false,
color: 'FFFFFF',
fontsize: 14,
},
primary: 'flash',
fallback: 'true',
autostart: 'false',
androidhls: 'true'
});
</script>
<div class="caption">Video 1.2, Length: 00:11:57 Multicultural Meeting</div>
<!--VIDEO EMBED CODE ENDS HERE-->