The setPlaybackQuality() function incorrectly assumes that, if the desired quality is not available, the desired quality must be higher than the best available quality.
For example, when trying to set 480p ("large") playback quality when it is not available will set the playback quality to the best available quality, which is commonly 1080p.
The function should attempt to select the first available quality that is higher than the desired quality before setting the highest available quality.
The
setPlaybackQuality()
function incorrectly assumes that, if the desired quality is not available, the desired quality must be higher than the best available quality.For example, when trying to set 480p (
"large"
) playback quality when it is not available will set the playback quality to the best available quality, which is commonly 1080p.The function should attempt to select the first available quality that is higher than the desired quality before setting the highest available quality.