I want to show local videos by HTML5 video tag on phonegap android What is wrong with this html code?:
<video controls width="300" height="300">
<source src="file:///android_asset/www/data/video.m4v">
<source src="file:///android_asset/www/data/video.webm">
</video>
It doesn't work, video doesn't play.
Also It doesn't work:
<video controls width="300" height="300"><source src="data/video.m4v"><source src="data/video.webm"></video>
But when I load videos from remote server It works well(I load the same video file from server):
<video controls width="300" height="300">
<source src="http://192.168.1.140/video.m4v">
<source src="http://192.168.1.140/video.webm">
</video>
I build it and run on Android.