Twitch Project - iframe video not loading

I checked the console, and I am getting this error:

“Failed to load ’ ’ as a plugin, because the frame into which the plugin is loading is sandboxed”

I tried it with a few live channels and nothing. I also tried using a client-id when making the API call.

Does anyone know what is causing this? (JS line 81 for code)

CodePen
Twitch Embedding Video

I think the issue you’re running into is using the videoID in your src of the iframe. When i swapped it out to the channel name instead $('#vid').html('<iframe src="http://player.twitch.tv/?channel=freecodecamp&autoplay=true" frameborder="0" scrolling="no" height="378" width="620" allowfullscreen="true"></iframe>'); } }); I was able to get the iframe to load.

1 Like

Yeah, I tried the video ID and the username. I still get nothing. That’s odd. :neutral_face:

Could anyone check and tell me if they see the live stream from “esl_csgo” (drop-down menu in the searchbar)?

I am still getting a black screen for some reason. Thank you!

Working perfectly fine for me, started streaming right away.

1 Like

Well, that’s good to know! Thanks again! I have no idea why I can’t see it. :smile:

UPDATE It is finally working. It was my popup blocker. :smile:

Good to hear. Those head-scratchers, they’ll get ya

1 Like