Embedding twitch channel and expectations

Call the API instead of asking the embed.
Or listen for PLAYING
Or check if the player is playing or not.

You are binding/listening to an event that is not documented and as dist notes you are binding to listen to ALL events from iFrames. Rather than just the ones you are supposed to use.

So your code is capturing extra events than those it’s supposed to listen on.

The fault is in your code not the Embed.