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

Optimal embed video


For example I have a video and there are four links to this video:
http://mysite/upload/video.hd.mp4 for high definition
http://mysite/upload/video.cd.mp4 for standard definition
http://mysite/upload/video.md.mp4 for Mobile
http://mysite/upload/video.m3u8 for life streaming video

Could you tell me please what is the right way to form a video code for a video-player to maximize rapid delivery of a video to the viewers.
How do I properly form embed this video clip in the player.

5 Community Answers

sheruru

User  
0 rated :

Will the code below correct and optimal for any device?
<script>
jwplayer("myElement").setup({
image: "/uploads/myPoster.jpg",
primary: "flash",
sources: [{
file: "/uploads/myVideo.m3u8",
label: \"HLS HD\",
default: "true"
},
{
file: "/uploads/myVideo1280.mp4",
label: \"1280p HD\"
},
{
file: "/uploads/myVideo720.mp4",
label: \"720p HD\"
},
{
file: "/uploads/myVideo360mp4",
label: \"360p HD\",
}]
});
</script>

Ethan Feldman

JW Player Support Agent  
0 rated :

Does the m3u8 have multiple qualities in it?

sheruru

User  
0 rated :

Yes, there are several qualities file m3u8

sheruru

User  
0 rated :

But, because m3u8 is not supported Android. How to generate code that video could be played on all devices?

Ethan Feldman

JW Player Support Agent  
0 rated :

6.9 will be out in ~2 weeks, which will support HLS on Android.

This question has received the maximum number of answers.