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/
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/