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
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/
No problem! Glad I could help.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.