Play any YouTube video .Pause and forward the video, buffering loader shows and the play icon not appearing. End Result : Infinite loading occurs.
I don't know if this really answers the questions, but I was having a similar issue with infinite loading.
Basically I would play a video using a player fragment, exit the video, and then the next video I would try to play would display an infinite loading indicator.
This issue was only happening on certain devices.
Since I was using the latest version of the youtube api, I updated the youtube app on the problematic devices and that seemed to resolve the issue.
Hope this helps.
Related
I was working on YouTube player in my Android app using the Javascript API. I had faced some issue, which I raised on a separate question:
https://stackoverflow.com/questions/34786950/android-youtube-remove-buffering-indicator
I have faced another problem that sometimes on Samsung Note 4, the Youtube video becomes invisible, though the webview for Youtube is visible. Here are a couple of screenshots:
As evident from the screenshot, the YouTube ads and subtitles are completely visible, but the video itself is not.
Can anyone point out a solution, or a possible cause why this is happening?
PS : I have not added the code in this question, because the code is the same as this question : https://stackoverflow.com/questions/34786950/android-youtube-remove-buffering-indicator
I recently have updated YouTube Android Player API to 1.2.2 (the latest version), but it keeps telling me
16445-16445/com.* W/YouTubeAndroidPlayerAPI﹕ Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API.
, when I try to put a video on the fullscreen mode. In addition, the video stops playing and it appears, that it can’t be played anymore (it stucks). What’s even worse, when you press back, it does not allow you to play the video in normal mode, so, basically, you have to reload the activity. I’m using YoutubePlayerSupportFragment. I guess, that the general YouTube app update might have ruined it. I have noticed, that the full screen mode worked smoothly before.
How to overcome with this problem? Thanks in advance.
When you extend AppCompatActivity, It causes 2 following problems:
It causes error UNAUTHORIZED_OVERLAY when playing in fullscreen. Because the statusbar is on the top of YoutubePlayer.
Solution: set FULLSCREEN_FLAG_CUSTOM_LAYOUT to hide the status bar manually.
YouTubeAndroidPlayerAPI﹕ Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API.
The UI of YoutubePlayer looks so bad. It just happens when extending AppCombatActivity. Updating the latest youtube api doesn't work.
If you find the solution of the 2nd problem, please let me know.
I am using android-youtube api in my android project. I am using youtube fragment to play a youtube video.
Along with that video, I am playing other media (eg imageview) side-by-side. (I am aware that the youtube fragment should be always on top, so the problem is not related to this constraint).
I am able to play the video successfully, but the problem is, after video starts playing, the pause button does not fade out. It keeps showing that button. It seems like it fades out, but immediately after it disappears, it reappears.
I am not getting any logs related to this (not even in system log). However, when I play video fragment in full layout, there is no such problem.
In short, the problem occurs only when I play video along with some other media side-by-side. I didn't find any work around for this particular problem, so I don't have any code related to this problem.
How do I get rid of this issue?
Thanks in advance for help.
So, this is an extremely bad bug for my app.
I have an app that basically relies on videos to autoplay, but the YouTube API wont let you autoplay if they randomly choose to inject an ad first in the video.
I have tried lots of workarounds and eventually I found a half solution, that sort of works. If I detect no sound playing after some interval, I keep trying other videos... which then at some point wont have ads.
Does anyone know of a way to autoplay videos through the YouTube API when ads appear first?
I have a problem with playinh youtube videos in my app.
I have a page with embed video. When i tap on video, loader appears, everything is ok.
When loader dissapears, it should start playing. But in my application there is white screen appears.
On LogCat at this moment i can see this:
CordovaLog showing Custom View
Problem fixed, by using plugin.
But, i have the same problem with VIMEO.
This plugin will help you to play a YouTube video in a Phonegap/Cordova app:
https://github.com/remcob00/cordova-phonegap_youtube_player_api_android