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.
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.
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:
In the video Modal, There's an iframe […]
<iframe width="560" height="315" src="https://www.youtube.com/watch?v=IscyXq5CqLs?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
You might find the article below useful:
https://support.google.com/youtube/answer/171780?hl=en-GB
<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.
<iframe width="560" height="315" src="https://www.youtube.com/embed/IscyXq5CqLs?rel=0&controls=0&showinfo=0" frameborder="0" allowfullscreen></iframe>