player.setChannel not working (Embed Twitch)

Hi, thanks for the reply. Sorry for my bad english :sweat_smile:

That code was just a test, and it had a mistake the http. The real problem is, as I said, the player.setChannel. I’m doing a script that updates the channel that is in the iframe, and I have a variable called actualChannel with value of = onlineUsers.data[0].user_name.

Then I show it in the console with console.log(actualChannel); and this works fine, but when in the code player.setChannel(actualChannel), the iframe keeps black and doesn’t do nothing, in console no error appears. It’s like the variable is null but no, because in the console appears the channel without any problem.

Thank you for reading :smile: