
JW Player with HTML5 support
I know this question has been asked many times here, but I could not come to a standard solution from them. So need help.
I simply need to show my .mp4 videos in jwplayer 5.10, such that it will show in flash version where it gets flash otherwise in html5 version.
Here's my code :
jwplayer("video_holder").setup({
'height': '300',
'width': '100%',
modes: [
{ type: "flash",
src: "player.swf",
config: {
file: "http://example.com/path/to/video.mp4",
}
},
{ type: "html5",
config: {
file: "http://example.com/path/to/video.mp4"
}
}
]
});
FYI : I am converting all my videos in .mp4 format, using ffmpeg, libx264 It does not load the video in Chrome and IOS, works with flash in FF.
What am I doing wrong here?