Youtube API Video stops if not full screen
I am using youtube API and I followed the instructions from this tutorial:
It's okay, but when I'm not in full screen, the video keeps freezing every second. It seems to play for 1 second, stops, then I press the play button again, after which it stops again after 1 second. In full screen mode, it plays fine. I am 100% sure this is not an internet connection because I have tried it with many connections and it ONLY plays correctly on full screen. Any idea how I can fix this?
EDIT: This is not a phone either, I tried it on Nexus 5, Sony Xperia z1, HTC One, a number of Samsung galaxies. I have checked the code several times, it is exactly the same, even made a copy of the tutorial pattern. It still stops when not in full screen. I only used the tutorial as I wanted to make sure it works before embedding it in my main project.
source to share