Video not opening in Bootstrap Modal

#1

Hi,

I’m trying to open a YouTube video in a Bootstrap modal. The modal works, but the video doesn’t play.

I’ve created a fiddle here:
https://jsfiddle.net/toolman/acom4kv3/

Can anyone see why it isn’t working?

Thanks

#2

Hi there toolman,

you need to use their code for embedding their video…

<iframe width="667" height="375" src="https://www.youtube.com/embed/um4Qei2arnc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

But that will not work as it gives this information…

not-available

…on start. :rofl:

Alternatively, download the video as mp4 - 149MB. :winky:

coothead

2 Likes
#3

Thanks, the iframe worked. I have used a different URL :slight_smile: