PhoneGap Android ChildBrowser plugin and YouTube - can't play any videos - android

We are using PhoneGap/Cordova 1.8.1 (Android) with the latest version of the ChildBrowser plugin. When we bring up a link to youtube in the ChildBrowser, we generally cannot play any videos. Here is our testing so far:
Android 2 (old Droid 1): Mobile YouTube site comes up, no videos will play at all though (doesn't even switch to video mode).
Android 4 (Motorola Xoom): Mobile site comes up, video seems like it is playing, but only shows a black screen (no sound);
Android 4 (Droid Razr Maxx): Mobile site comes up, plays, but no video only sound.
We also had someone report with an Android 2 device that the video would play, but would change the orientation of the device from portrait to landscape - then upon going back to the app the app would stay fixed in landscape (even though it is set to portrait only).

Yes, you should use the ChildBrowser.openExternal on Android as it will start the Android browser which you can play YouTube video's. The ChildBrowser.showWebPage does not start the browser, instead it creates it's own web view to display the remote side so it is not full featured.

Related

Screen flickering black when html5 video tag comes in cordova ionic app

In latest android 10+ We are facing the wired issue in Ionic application. When user try to play video screen flickering black screen. Mostly its happen in Samsung android devices. Video is not loading from internet. Its a local device video. Also, not an issue with file reading permission. As 1/10 times its work and 9 time not working.
Google Chrome 85 released today fixes this going forward. its an issue with HTML5 Video player and webview. Please update to the latest version of chrome 85 and android webview

YouTube player API does not work with IE10 and Android?

Good time passed since the relevant posts - 2 years. I wonder if the mistake is on my part - I am using this tutorial
https://developers.google.com/youtube/iframe_api_reference?csw=1
"Getting started section".
I very enjoy the player itself which works perfectly on Firefox 23.0.1 and Chrome 29.0.1547.62 m, but it freezes in IE10 and on my Android Galaxy Nexus phone 4.3.
In IE10 it seems to freeze on the player state change. I've also tried Firefox app on my phone and again it works while native browser freezes on the same player state change.
I've checked the spec and it seems HTML5 player is supported by both IE past 8 and Android.
Could anyone enlighten me please whether the mistake is on my part or something is fundamentally wrong with IE and my Android phone native browser?
I have same problem. When I open same page with Android Chrome, video is loading successfully. But Built-in android browser and also Lumia's browser(IE) can't load video.
That's a strange situation that video can be load at Youtube player's demo page(https://developers.google.com/youtube/youtube_player_demo) on Android's native browser.

Android 4.1 web browser, Vimeo videos, and the Froogaloop API, Issue?

So I am having issues with the Vimeo player on an Android device (Samsung Galaxy S3) running Android 4.1.
In the web browser it seems that the Android OS web browser turns the iFrame into a native HTML5 player once the video starts. This seems to render the Froogaloop API useless.
An example can be seen here: http://www.dmns.org/science/museum-scientists/chip-colwell-chanthaphonh/mobile .
Click on the 'Videos' tab and click on the Next and Previous arrows. The arrows should stop the videos.
Those should 'unload' or stop/pause the video but they does not. It works on desktops fine and older Android devices, but the new Android 4.1 OS the player does not stop when the arrows are selected.
Note: I have not downloaded Flash for Android and don't want to.
If you have a solution or any suggestions to try that would help tremendously. Thanks in advance.

Youtube iframe in jquery mobile + phonegap build

I'm using an iframe to embed a youtube video in an app for android/iOS developed using jQuery mobile and phonegap build.
Testing it on my browser works fine.
On my device (android) I see the video thumbnail, but when I click on it the screen goes black, I see the controls (play, forward and backward) and the video doesn't start.
On some other video I see the loading "circle" and after that the YT related videos.
I'm checking that the video is avaible for mobile
http://gdata.youtube.com/feeds/videos?alt=json&format=1,6&fields=entry[link/#rel='http://gdata.youtube.com/schemas/2007%23mobile']&max-result=10&category=Music&q="+mySong
Any help would be really appreciated.
This tutorial seems to work :
http://eisabainyo.net/weblog/2012/01/24/embed-a-youtube-video-iframe-in-phonegap-app/
Pay attention to this step:
Change/add the following values in PhoneGap.plist file of your app.
MediaPlaybackRequiresUserAction: NO
AllowInlineMediaPlayback: YES
OpenAllWhitelistURLsInWebView: YES
ExternalHosts
*.youtube.com
*.ytimg.com
The problem seemed to be related with the android version: on 4.0 the iframe/html5 version worked fine. The problem was on android 2.3.
I used a jqm plugin as a workaround in 2.3

Hdmi video output blank on Tablet

My Android app plays videos within the app using a videoView. When connecting the tablet to a TV using HDMI, I am able to see my tablets screen on the TV.
Everything seems to be working fine, however in my app, my videoView is ONLY displayed on the TV. The tablet is just blank. Is there a way to force the videoView to play the video on both the TV and the tablet? I want both screens to be identical.
HDMI out is not part of the Android SDK, and in many cases is not even really a part of the standard Android OS. Device manufacturers can do what they want in terms of what is shown on the tablet and what is shown on the TV. There is nothing on VideoView or MediaPlayer to control this behavior.
If you are targeting some specific piece of hardware, you can try contacting the manufacturer to see if they have some beyond-the-SDK way of controlling this.

Categories

Resources