SvenTiigi / YouTubePlayerKit

A Swift Package to easily play YouTube videos 📺
https://sventiigi.github.io/YouTubePlayerKit/
MIT License
714 stars 64 forks source link

Video quality seems capped at 720p #56

Closed frlefebvre closed 1 year ago

frlefebvre commented 1 year ago

What happened?

When playing videos, the maximum quality available is 720p.

What are the steps to reproduce?

  1. Setup the player with default configuration for a video that has (at least) 1080p quality available on YouTube
  2. Press play
  3. Open the settings for the video
  4. Maximum selectable quality is 720p. playbackQualityPublisher also reports back hd720

What is the expected behavior?

I would expect videos that have 1080p available to show the option and play at the highest quality available. The quality publisher seems to have a case for it so maybe there's a problem on my end though?

SvenTiigi commented 1 year ago

Hi @frlefebvre,

The YouTubePlayerKit makes use of the official YouTube Player iFrame JavaScript API where some quality options are not available.

Bildschirm­foto 2023-01-29 um 17 31 40