In my phonegap app, I have some videos playing from youtube and some other MP4 (h263) videos in the html.
On iOS, I found a nice plugin for playing these videos natively, in a stable and control-able MPMoviePlayerController instead of this buggy webview object.
Now on Android, I miss a similar phonegap plugin and could only find one that sends the video URL to the youtube app. I.e. the user leaves the phonegap app when playing the video which is not wanted, of course.
Instead, the android.media.MediaPlayer should handle the playback.
Can you recommend a phonegap plugin for dealing with videos on android?
Thanks for sharing.
Related
I am trying to use Bitmovin player for my Ionic video application to play encrypted content. But so far everything I've tried seems not to work.
It only plays on web browsers so far. Is it possible to use widevine DRM on Ionic Android/iOS applications? If so, how can I go about it?
I want show a live video streaming from youtube using cordova, but I no sure if it's possible or not.
I readed about youtube.liveBroadcasts.bind bind from Youtube API, but I'm not sure if it's possible using cordova.
exist a way to take this streaming with cordova?
I want to play videos in my app using the Cordova plugin, which is available for both the iOS and Android platforms. I am aware of the HTML5 video tag but wish to use plugins. I have tried this plugin and have successfully used it. However, it only plays videos from a web URL, and I wish to play videos from my local file system.
Can anyone tell me how to do this?
I have been trying to play video in my android application that I made using phonegap. I had several problems and so I have several questions.
Firstly, does html5 video tag work with phonegap? I couldn't succeed to write the html5 codes.
Secondly, what types of videos are supported by android and phonegap?
Thirdly, I try to play a file whose extension is mp4. There is no scene on the screen but I can hear the voice of the video. What can be the reason?
Thanks in advance.
Nope, 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
I'm doing mobile web app, in that i use html5 to play videos, it works fine
But In Android native browser if i click on the video it transfer to native media player. but i want to play it inline
How to do this? thanks
Piperoman wrote his answer in comments, so I figured I would put the link into an answer for convenience:
HTML5 <video> element on Android