I'm not convinced that I want to do this, but it would be nice to explore.
Currently, any time the user switches streams, a new iframe is made and connects to the new stream. This means that an advertisement will play after a few seconds. Again, this happens anytime we change streams.
It would be great if we could either
prevent advertisements from playing on stream switch somehow
(maybe by changing Twitch component to listen for new props and manually set existing iframe's url without re-rendering? See #15 )
Looks like Twitch now seems to inject advertisements straight into the stream instead of overlaying them, so it seems like this is not very feasible anymore. Closing this for complexity and lack of return.
I'm not convinced that I want to do this, but it would be nice to explore.
Currently, any time the user switches streams, a new iframe is made and connects to the new stream. This means that an advertisement will play after a few seconds. Again, this happens anytime we change streams.
It would be great if we could either
(maybe by changingTwitch
component to listen for new props and manually set existing iframe'surl
without re-rendering? See #15 )