Twitch tv object creates mutiple stream

I am trying to create a simple web app where a user can type a name of a stream and the stream works.

Problem I am having is that it creates multiple stream. I want it to remove the old stream and play the new stream when I enter a search value

You’re trying to create a new player instance every time. Instead, use setChannel to set the channel of the existing player.

The documentation is here: https://dev.twitch.tv/docs/embed-video/

1 Like

Thanks for the help @DallasNChains. I should of read the docs

No problem! Glad I could help. :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.