I am writing a basic streamer hub. I have some links setup that call setChannel() on a single Twitch.Player object.
If I player.setChannel(“some-OFFLINE-channel”) the player switches to that channel and my console slowly accumulates 404’s attempting to connect to the offline channel. If I then player.setChannel(“some-ONLINE-channel”) the player switches, begins playing, and then will pause if/when a remaining 404 occurs from the previous channel.
It’s as if some requests were made when the player was set to “some-OFFLINE-channel” and they still interact with the Twitch.Player object when they timeout and callback.
I couldn’t demonstrate this issue in codepen/jsfiddle so here is a raw example. Example works locally.