My application, https://www.thirdplace.tv/, is experiencing a problem with setQuality calls on the embedded Twitch players during ad breaks.
I normally call setQuality on a timer after the player starts playing or is resized, setting the player to a resolution appropriate to its new size.
This has historically worked fine and produces very stable playback at low bandwidth, but now when I call setQuality and the player is on an ad break, the player can lock up hard in Chrome and Firefox.
I’ve had to disable the setQuality calls, and the automatic player adjustment is really shaky in a multiviewer without it.
Does anyone know a workaround to this, or if there’s a known issue being worked on with setQuality and ad breaks?
Like, could I detect the ad break possibly and not call setQuality until it’s over? I’m not trying to disturb the ad break. In fact, quite the opposite, I want it to play out completely instead of getting frozen and the user being motivated to remove the stream (and ad break) from the display.