Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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-->

2 Community Answers

Donni

Best Answer  JW Player Support Agent  

You shouldn’t need to have an MP4 fallback anymore since we will ensure the HLS stream plays in all modern browsers on desktop and mobile. I would get rid of the blocks below and the MP4.

primary: 'flash',
fallback: 'true',
autostart: 'false',
androidhls: 'true'

As always, you can review the "configuration reference()":https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/configuration-reference/#logo for an up-to-date list of configuration blocks available in the player.setup().

View in conversation

Donni

Best Answer  JW Player Support Agent  
2 rated :

You shouldn’t need to have an MP4 fallback anymore since we will ensure the HLS stream plays in all modern browsers on desktop and mobile. I would get rid of the blocks below and the MP4.

primary: 'flash',
fallback: 'true',
autostart: 'false',
androidhls: 'true'

As always, you can review the "configuration reference()":https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/configuration-reference/#logo for an up-to-date list of configuration blocks available in the player.setup().

j...

User  
0 rated :

Hi Donni...
I've made the edit and it seems to be working perfectly. Thanks for replying to my post. Just wanted to be sure that we eliminated any miscellaneous code and that html5 was the primary.

This question has received the maximum number of answers.