YouTube Android Player API is not working. It is worked for only one time and second time onwards showing this error Please check your network connection Tap to retry
I checked my network connection it is working fine. I tested various samples and creating various android key's in google console.
Steps to Reproduce
We can able to reproduce this issue in google sample application give for YouTube Android Player API
- Download the sample app from this link
- Update you DEVELOPER_KEY in DeveloperKey.java
- Run the app and play the video in Simple Player View it plays for now.
- Again try to play the same now it showing an error.
- But I checked in log it showing this
Forcefully created overlay:abaa@d131896 helper:Lazy@ca35c17 view:null status: ...... {...}
I am struggling how to resolve this? Is this any library issue from google? Is any answer to solve this issue? Your help is appreciated.
EDIT
I found this issue facing only in xiaomi phones it seems. I am using xiaomi Redmi Note 3, from this device only error occurs
Just add ONLY your youtube ID and it works FINE!!!!
Nikolas