YoutubePlayer shows endless loading when try to play a song with YoutubePlayerAPI in particular with YouTubePlayerSupportFragment for Android. It happens randomly. Sometimes the loading fails with INTERNAL_ERROR. Please see attached images
Strange - because native Youtube app is able to load and play video properly and without any delay.
Please advise what might be the reason of such issues and how to fix them. Thanks in advance
EDIT: I do receive onVideoStarted callback, but still video doesn't play

See this answer and try to do the same YouTubePlayerFragment backstack. I think your problem has same cause as mine. Also check logcat output for errors (it could be obfuscated, and out of application scope, so check 'No filters' in logcat)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With