
JW player not working with video tag
I am trying to embed <video> tag of html5 and jw player, but it is giving me following error:
Error loading player:
No playable sources found
Here is my snippet code:
<script src="jwplayer/jwplayer.js"></script>
<video loop width="500" height="360" id="myVideo">
<source src="video/1483.mp4" type="video/mp4">
</video>
<script type='text/javascript'>
jwplayer("myVideo").setup({
repeat:true
});
</script>
And i am using jwplayer 6, so it takes jwplayer.flash.swf file from the location same as my jwplayer.js file.
Even if i use jwplayer 5 and give address of .swf file explicitly, i am getting the same error.
jwplayer("myVideo").setup({
modes: [
{ type: 'html5' },
{ type: 'flash', src: '../js/external/jwplayer_/jwplayer.flash.swf' }
]
});
FYI, the file 'video/1483.mp4' works if i use only <video> tag. However, if i use jw player with it, i am getting this error.