Youtube Android Player slows down device - android

My app has an embedded Youtube player. I am using the latest version of the Youtube Android Player (1.2.1). I am using the YouTubePlayerSupportFragment and this fragment is nested inside another fragment of my app.
It works on Android 4.4 and Android 5.0.
On Android 5.1 it works at the beginning, but after playing some videos the problem arises. The entire device slows down up to the point of it becoming nearly unresponsive. If I kill the app (if the Youtube Android Player gets killed) the device goes back to normality. However, from now on the Youtube Android Player cannot play any more videos (the device becomes unresponsive again).
Edit: in case the problem was in the fact that it is an embedded fragment, I have tested with an Intent (YouTubeIntents.createPlayVideoIntentWithOptions). The problem remains the same.
Has anybody experienced this kind of problems?

Solved! I was compiling with targetSDK 21, but Android 5.1 is SDK 22. It looks like compiling with an older SDK was causing the problem. After updating the targetSDK to 22, now it work like a charm.

Related

WebView not working well due to Android System WebView

The latest Android System WebView update to version 109.0.5454.117 caused issues on some Google TV devices. My application uses a browser with a transparent background. After updating the Android System WebView, navigation through the WebView in my application occurs with a delay (for example, if you press the button down, this will not happen immediately, but after a few seconds.). This doesn't happen on phones, but only on some Google TVs, most likely only where Android System WebView is 109.0.5454.117.
Does anyone know what could be the problem and what needs to be fixed?
It's been 17 days now and Google hasn't released an update to 109.0.5454.117 that would fix the problem.
About a year ago there was a similar problem, but Google quickly released an update and the problem was solved.
Can I add a stable version of the Android System WebView to my application myself?

YouTube Android Player API stopped working suddenly

My app uses this version YouTubeAndroidPlayerApi-1.2.2.zip https://developers.google.com/youtube/android/player/downloads
Recently my users started to report issues that videos aren't being played/loading - endless circle progress bar.
I checked on my Samsung S10 (Android 12) and it also has the same issue.
But I checked on pixel emulator (also Android 12) and it works fine, I even updated YouTube app to the latest version and still it works, so weird.
So emulator and real device has same version of YouTube app (17.22.36) and both on Android 12 but it doesn't work for real device only
And mb it effects only some users. App has enough users but only a few report this problem now and it doesn't work for my real device
I have same problem .
My YouTube App has some users and it works fine several years .
After update android12.
My app not works .
Debug point is just : youtube fragmentX(override) - OnStart() , and endless circle progress bar.
No problem in other version real phones (Samsung S10) .
I thougth that 'Restrictions on background starts' realated bug on android12 .
-->
https://www.getdroidtips.com/netflix-youtube-not-working-after-update/
I just clear YouTube Cash, and Data.
And it works again ..

Cordova Vimeo No Full Screen Android

We just noticed that our Vimeo videos do not open in full screen anymore when the play button is tapped on Android devices and there is no way to make the video full screen either. Full screen does still work in iOS though. We even went back and tested an older version of the Cordova based app and those no longer opened in full screen so it seems to be an issue with Vimeo.
I've tried doing some searching via StackOverflow and Google but have not been able to find anything that has helped. Has anyone else had this issue? None of our code has changed when it comes to videos and this used to work. Like I said previously, it still works on iOS. I would say it's an Android issue however, it doesn't work on an older Android OS anymore either with an older version of our app so it seems that it's a Vimeo issue.
Thank you!

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.

Categories

Resources