justintv / Twitch-API

A home for details about our API
www.twitch.tv
1.72k stars 381 forks source link

Interactive Player - reference player object in its event listener? #569

Closed jzisser9 closed 8 years ago

jzisser9 commented 8 years ago

I'm writing a web application that embeds multiple streams in a page, and I'm trying to set up event listeners on each player for when the stream goes offline or comes online. I need these event listeners to be able to access information about the player they're assigned to, but I can't seem to find a reliable way to do this. It's important that the event listener be able to get the current state of the player it's assigned to, because I need to know what channel is currently playing on the player.

Is there a canonical way to access info about the player when creating an event listener on it?

DallasNChains commented 8 years ago

Since this is already on the forums, I'm closing this.

jzisser9 commented 8 years ago

Hi @DallasNChains. Does the Twitch API team have an answer as to whether or not this is possible?

DallasNChains commented 8 years ago

You asked this on the forums, which is the correct place. There are responses there. That's why I closed it here. :)

jzisser9 commented 8 years ago

Understood. Thanks @DallasNChains ! :) I haven't had the chance to check the forums since yesterday afternoon so I'll give that a look.