You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "setPlaybackQuality" API call is a no-op. It was removed in October 2019.
Hence the whole optimizeAmbient function is pointless. The ambient video can be muted in the "onReady" callback once.
The requestAnimationFrame function is also a no-op since it gets started before both objects are ready, then it throws an error and never executes again. Even if you fix that, ambient video stutters like crazy and never really plays, since it's overwhelmed with 60-240 seek calls per second. I've tried using regular "setInterval" at 1000ms and then only updating if both positions are too far apart, and it regularly makes the ambient video stutter. The best solution was not to do it at all.
The "setPlaybackQuality" API call is a no-op. It was removed in October 2019.
Hence the whole optimizeAmbient function is pointless. The ambient video can be muted in the "onReady" callback once.
The requestAnimationFrame function is also a no-op since it gets started before both objects are ready, then it throws an error and never executes again. Even if you fix that, ambient video stutters like crazy and never really plays, since it's overwhelmed with 60-240 seek calls per second. I've tried using regular "setInterval" at 1000ms and then only updating if both positions are too far apart, and it regularly makes the ambient video stutter. The best solution was not to do it at all.
Here is my entire version
It takes the videoId from the dataset of the "video" element.
e.g.
<div id="video" data-yt-id="ASzOzrB-a9E"></div>
The text was updated successfully, but these errors were encountered: