Embed twitch steam only when the streamer is online

It would seem that the event listeners might be broken.

This may get resolved with the upcoming embed player updates:

So an alternative to the player events would be to either use webhooks or the streams endpoint

https://dev.twitch.tv/docs/api/webhooks-guide

To obtain Online/Offline status and flip flop based on that instead of pure JS/player calls instead

1 Like