Colleagues,
I embedded youtube video (autoplay, loop) under background (z-index:-1) in my website. Everything is ok when using desktop browser. But when website is opened in Android browser, youtube video isn't autoplaying. There is a play button, but I can't press it because it's under background. Is there any possibility to make that button available to press and start a video in Android or other mobile platforms?
Thank you.
Related
I created an Android App which loads a webpage via Webview into the app so you can access the content on a mobile device. On the webpage, I have placed a radio player using iframe and it works. But when I try to click on it to play in the app, it doesn't work. The play button isn't responding at all. If you can point me in the right direction, I would be glad.
The webpage in question is zeno.fm/repjesus-radio, incase you would like to have a feel of the player.
I'm looking for a solution about YouTube in Android.
When my WebView in app connects an webpage, some pages may have embedded YouTube clip.
When I press the RED play button in the center of embedded clip, it plays well. Yes I set enabled JavaScript , plugins, hardware acceleration etc. But it ONLY plays in the WebView internal media player.
I've tried with several libraries such like YouTube API that provided by Google, but It just provides Views and interfaces, and cannot convert a YouTube clip in WebView to a YouTubeView (If you know how to convert, let me know).
All I want is simple. Hit a red play button in embedded YouTube, then my app launches YouTube App (or stock media player) so play the YouTube clip.
iPhone can do this very simply with the stock player, but I can't understand why Android can't do so.
Please check whether "YouTube" application is install on your device? If yes then just update it.And most of the time you tube application not working properly on emulator..
I'm developing an app with html, css and javascript which i port trough Phonegap to play on an Android tablet. (android 2.3.1 Gingerbread)
Everything is working fine, except the Youtube embed.
If i place the iframe embed on my page there is no play-button above my youtubescreen, so the user does not know he has to press it. But if you press it, the movie loads into the external android video playing app.
But here's the second problem; when the movie ends, the external android player closes and returns to my app, but then my youtube video screen is black en has these ugly android videocontrols of the external player.
But i can't do anything with it... so the user can't press the movie to watch it again.
Does anybody know how to implement a youtube video correctly into an HTML based android application?
It's HTML, so webviews, videoview, intents and things won't work...
Things i tried:
iframe embed
object embed
html5 video embed
online embed on external page
but in every attempt, those ugly videocontrols keep popping up after the video ended.
I also tried another player, but with the same result... Anyone ideas? :-)
I would like to play a HTML5 video back to the user directly in the native android video player.
My current setup takes way too much effort to get into the native video player: Currently I have a WebView with an embedded HTML5 video (such as a Youtube or Vimeo HTML5, not flash, embed). The user has to hit play on the video, and then hit the fullscreen button (on far right in the picture below)
Then it opens in the native player which looks like this:
The native player is a View is a much better experience for video playback. (I believe it is a VideoView? though maybe it is different in newer versions of Android. It is a View within my Activity so provides extra control. See this post for more info.)
I'm looking for a graceful way of directly launching into this experience instead of having to load the embed in a WebView and then leaving it to the user to tap the full screen button.
Any ideas?
Thanks!
Is possible to run (on Android/iOS) full screen youtube video on click on a link? I don't want click on a player. For example: clicking on url will open video on full screen.
You can create a new activity with a VideoView in it. VideoView accepts video links (they say it can play rtsp, which is what youtube mobile is using, but I have yet to try)
just do videoView.setVideoUri(rtsp://...);