I'm building a web app that plays YouTube videos using iframe API.
The problem I'm trying to solve is on iOS, when the iPhone is under slow cellular network, the YouTube cannot load at all. I realized it also happens on YouTube mobile website with Safari or Chrome (it has no problems with YouTube app tho).
Then I call getAvailableQualityLevels()
to see the quality the iframe player returns and I see that on iOS it doesn't support tiny
and a few other options while on Android it does. On Android, with slow cellular it is working as expected with the same video.
iOS: ["hd720", "medium", "small", "auto"]
Android: ["hd1080", "hd720", "large", "medium", "small", "tiny", "auto"]
I couldn't find any document mentioning about this. I really need to make it work with cellular network. Any ideas for workarounds?