Video is not playing in web view Android TV - android

I am trying to make an application for Android TV where my use case is very simple. I want to display a content to user and when the user clicks a web view opens and a normal mp4 video (URL) loads.
However it does not start playing in Android TV, it straight away call the onPageFinished() and close the web view screen. It works well in Fire TV.
Do we have to include any other method to play it?
Link I am trying to play

Related

Jplayer not playing in Android Webview

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.

How to play a youtube video in side-by-side view on Android WebView

I'm trying to make an Android App and I need help.
Do you have any idea how to play a online video (like a video on Youtube) in side-by-side view at the very same time by using Android WebView?
so, when I watch a Youtube video, I want to be able to have two views on left and right side on My Android SmartPhone Screen, and play and control the same video both on left and right views at the very same time.
Regards.
----2nd Feb, edited----
following things I've tried and failed.
・using Youtube API, get 3gp address, and try to play it with VideoView
・Using draw method and getDrawingCache method of WebView
・using onShowCustomView of WebView
Look at using a html5 video player like Video.js or Sublime Video. You will need to create some javascript with each of these that fires the left and right video at the same time.
You can also look at what this guys did for some more inspiration.
http://html5demos.com/two-videos
The trick is getting the videos to fire at the same time if you need them in sync. It's not easy to achieve if you don't control the source video and server as you are relying on an outside party to do this. YouTube is NOT a good choice for serving your videos if you need them to be in sync as you can't guarantee the video load and launch times, or control if an ad will get injected into the video stream.

Launch YouTube App by pushing play button in an embedded YouTube clip in webview

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..

Youtube movie in android html application

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? :-)

html5 video 'ended' event on android

I'm developing a web page intended for use on mobile devices, primarily Pandigital tablets running Android. On this page I have an html5 video element that plays upon page load, and when the video ends I need to have a Javascript function trigger and hide the video element. So far I have a basic multipage document set up with jQuery mobile just to test whether I can even get a trigger to work. The function I'm using is:
pageInit(function(){
$("#vid1").bind('ended', function(){
$.mobile.changePage($('#two'), 'fade');
});
});
The video (with a proper id="vid1") pops into fullscreen and plays perfectly. However, the page doesn't change when the video is finished playing. I am testing using Android 2.3.4.

Categories

Resources