setQuality calls during a commercial break crash the embedded player

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.

You probably want to file this an example code/tests on the github bug tracker GitHub · Where software is built for better visiblity/tracking

My personal pref would be to not use setQuality at all and let the user set quality with the player controls which are swapped out during an ad break as the ad is playing. Saves any faff between turbo/sub’ed users and non turbo/sub’ed

Good call, I didn’t know that existed. Okay, I’ll make a note to capture a screenshot of the problem along with console trace and post them with an issue there. Thank you so much!

I agree I’d rather leave it up to the auto behavior but we find it a bit flukey on large multiviews in certain conditions, and it’d be nice to offer a global quality control.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.