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

JWplayer 6 setup with support HTML5


Hello
my old code(jwplayer5):
<script src="/jwplayer.js"></script>
<video src="sample.mp4" controls id="myAlternativeContent" poster="sample.jpg" width="650" height="520"></video>
jwplayer("myAlternativeContent").setup({
flashplayer: "/player.swf",
bufferlength: "1",
provider: "http"
});

Please tell me, how to incorporate similarly JWPlayer6 ?

2 Community Answers

MisterNeutron

User  
0 rated :

JW6 is very different. Put jwplayer.js, jwplayer.html5.js, and jwplayer.flash.swf in the same directory, but load only jwplayer.js. DO NOT USE A <video> TAG, There is no "bufferlength" or "provider" tag.

Here's a simple demo page - see the drop-down menus at the top:

http://misterneutron.com/

Here's the configuration guide:

http://support.jwplayer.com/customer/portal/articles/1413113-configuration-options-reference

Cooper Reid

JW Player Support Agent  
0 rated :

Hello,

A basic mp4 embed would like like this with jw6:
http://support.jwplayer.com/customer/portal/articles/1406723-mp4-video-embed

<div id="myElement">Loading the player…</div> <script type="text/javascript"> jwplayer("myElement").setup({ file: "sample.mp4", image: "myPoster.jpg", width: 640, height: 360 }); </script>

Best Regards,
Cooper

This question has received the maximum number of answers.