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
Related
I cant use WebView, please help me
I will try my best & I hope I can solve it here.
check out official release of YouTube Android Player API, which plays yt videos natively, without any web-side
and if you want/need web player, but you can't use WebView - you may implement "FirefoxView", web engine used by Mozilla in their Android software, not related to Chromium at all, called GeckoView
You can use lib from opensource: link
I want to have video playing in my index.html while developing phonegap android application.
But the HTML5 video is not working in webview of phonegap android application. Please suggest a way. I don't want a intent to fire a new activity and play the video in native android player instead i want it in same HtML page.
It should just work normally. Things to check:
Is the video-file hosted locally (not on an external server), external sources will be marked as unsafe.
Is the path of your video file correct? Case sensitivity is important
I am having similar problems, and still haven't figured out how to get a locally stored video to play on newer Android platforms*, but I have found that embedding a remote video works pretty well. This iframe worked on both the ios and android emulators.
<iframe width="240"
src="http://www.youtube.com/embed/YE7VzlLtp-4" frameborder="0"
allowfullscreen>
</iframe>
there are a couple of plugins to play video for Android pre 4.x
I want to embed inline videos to my android phonegap application (similar to video tag in html5) ,i do not need a fullscreen choice which leave my page.
so, is there any solution/plugin to embed inline videos or swf files? or phonegap does not support that and i should stop searching ?
You can use this plugin to facilitate the same. I have used it and it works with a charm !
I Am working on android google tv project. In My project i want to play video from html embed code show below:-
<embed type="application/x-shockwave-flash" src="http://www.desifreetv.com/channels/tomandjerry.swf" file="http://desifreetv.com/locked/xml-files/tomandjerry.xml" width="707" height="483" style="undefined" id="mpl" name="mpl" quality="high" allowfullscreen="true" wmode="opaque" menu="false">
how i play
If you have a native app and plan to use a WebView with the above snippet embedded in it, you will run into issues since WebView doesn't support flash. If your app is a browser based app, flash is supported so you should be able to embed it in your web page. Alternatively, see if the provider of that content has a differently formatted videos (say, mp4 or so) and then you can use the native players.
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