PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.43k stars 758 forks source link

Automatic 360p Video Playback Issue in WebView #1046

Open mohamedkammoun123 opened 1 year ago

mohamedkammoun123 commented 1 year ago

I'm currently using this library in my application, and I've noticed that videos are being automatically played back at 360p resolution. I would like to understand the reasons behind this behavior ?

PierfrancescoSoffritti commented 1 year ago

The IFrame is controlling video quality, based on the speed of your internet connection.

mohamedkammoun123 commented 1 year ago

I've got a pretty fast connection, but I've noticed YouTube sometimes adjusts video quality according to things like my screen resolution. is there's a way to have 1080p in auto mode?

PierfrancescoSoffritti commented 1 year ago

Hi, you can have a look in the IFrame player documentation. That's not currently possible with the library. Let me know if you find something.

mohamedkammoun123 commented 1 year ago

When observing the behavior of the YouTube app, I noticed that in auto mode, it tends to play videos at 360p or 480p . However, when accessing YouTube through the desktop (www.youtube.com), I observed that it defaults to playing videos at 1080p in auto mode. Can we run our web view like in desktop mode ?