Showing 1 – 3 of 3 replies
bwilcox

In the video Modal, There's an iframe […]

bwilcox PURCHASED
7 years ago
In the video Modal, There's an iframe with a link to a youtube video. I simply replaced the demo URL and video that was in there with one of mine that works if you post it in a browser. This current code is not working though, so apparently, I'm missing some parameters or something on the backend. Please advise.

<iframe width="560" height="315" src="https://www.youtube.com/watch?v=IscyXq5CqLs?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
3wm
3wm SELLER
7 years ago
The video URL is NOT the embed code...
You might find the article below useful:
https://support.google.com/youtube/answer/171780?hl=en-GB
bwilcox
bwilcox PURCHASED
7 years ago
thanks for the article. The following embed code works in it's own window or tab, and also when placed in another section of the page and not in the video modal popup, but when launched from within the video modal code section of index.html, it flashes briefly and the red play button appears in the middle of the iframe and when clicked, then I get "an error occurred" and it gives a playback ID
<iframe width="560" height="315" src="https://www.youtube.com/embed/IscyXq5CqLs" frameborder="0" allowfullscreen></iframe>

Same in both Firefox and IE11 and Chrome with any blockers disabled.
3wm
3wm SELLER
7 years ago
You still need to use the parameters after the video ID "IscyXq5CqLs". Those parameters can be configured via the embed code via the "Show more" option. Anyway, the following code should work for you:

<iframe width="560" height="315" src="https://www.youtube.com/embed/IscyXq5CqLs?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>