I'm trying to place an embed video player on one of the pages of my PhoneGap application.
I am currently using the html5 video tag:
<video id="video1" height="240" width="360" controls="controls" onclick="this.play();">
<source src="/android_asset/video.mp4">
</video>
but I can not play my video on my AVD. I tried the videojs solution too, but I could not make it work either.
Is there any way to play videos on the AVD with PhoneGap? Thank you all.
I'm pretty sure I've answered this before but anyway, the video tag is broken in most if not all versions of Android. Go star these issues:
http://code.google.com/p/android/issues/detail?id=22254 and http://code.google.com/p/android/issues/detail?id=8272
In order to work around this pain in the @$$ I've written a plugin you can use on Android to play videos.
http://simonmacdonald.blogspot.com/2011/11/video-player-plugin-for-phonegap.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With