Volodymyr Humeniuk
Volodymyr Humeniuk

Reputation: 3791

setPlaybackQuality() does not work anymore

setPlaybackQuality() does not work anymore, even on official YT Api Demo: https://developers.google.com/youtube/youtube_player_demo

What has changed in the work of the YouTube Iframe api?

Upvotes: 4

Views: 2152

Answers (4)

securecurve
securecurve

Reputation: 5817

For those still interested, I tried setPlaybackQualityRange() as a drop-in replacement, and it works just fine.

Upvotes: 0

Volodymyr Humeniuk
Volodymyr Humeniuk

Reputation: 3791

So, finally, answer from Google:

setPlaybackQuality is now considered a "no-op"; calling this function will not change the player behavior. The player will use a variety of signals to determine the optimal playback quality.

Users are able to manually request a specific playback quality via the quality selector in the player controls.

Upvotes: 2

Pierfrancesco Soffritti
Pierfrancesco Soffritti

Reputation: 1738

You can read in this issue that the functionality is no longer supported, the method is still there, but as a no-op.

due to changes in our player infrastructure, the player will no longer honor requests to set a manual playback quality via the API. As documented, the player has always made a "best effort" to respect the requested quality.

The documentation will be updated in the future to indicate this call is no longer supported, though it will still be available as a "no-op" for compatibility purposes.

Upvotes: 4

abielita
abielita

Reputation: 13469

It was also reported in this thread. You could file a bug report if you think this is a bug.

Upvotes: 0

Related Questions