Twitch Project - iframe video not loading

Twitch Project - iframe video not loading
0.0 0

#1

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


#2

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.


#3

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


#4

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!


#5

Working perfectly fine for me, started streaming right away.


#6

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:


#7

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