Embedding twitch channel and expectations

Barry,

We are listening to the message event. That is because we use messages in our app, aside from the twitch embed. We check at the top of each routine that uses messages if the message is for that routine or not, so we don’t do any extra work, and so we can stop the message chain when it is consumed. Messages are not specific to iframes, as we use them over a real time messaging channel as well.

Regarding the frequency of logging versus frequency of messages, the Dist says we should be getting 1 per second. Since we are receiving three different messages (nolinit, update status, and offline) that makes at least 3 per second.

Regarding listening for the play event, that will only trigger if we have created the embed in the first place, correct ? Since we are receiving these messages when the player is created, listening for the layer event won’t help us stop the messages. We cannot listen for the Player ONLINE or VIDEO PLAY if we haven’t created the embed. Hope that helps clarify our thinking about these suggestions.