I am trying to build a website for my friend’s wedding. I’m using Bootstrap 5 and the embedded video is not filling up the screen size. Here is a live test page
I prefer to set the iframe width to 1920px, because it‘s the maximum width the video can get in order to be seen with good quality, right?
However, as per you say you are using Bootstrap, in the same div class you can add “w-75”, if you want your screen not to fill up the whole viewport.
Another optional issue: if you just set width 100%, the monitor with higher resolutions could render your video pretty pixeled (distorted), so add a class:
.myvideo{
max-width:1920px;
}.
So, a 4k monitor will show only the 1920 pixels to keep the image quality of your video, will be seen smaller of course but with good quality.
I‘m not sure if Bootstrap has a property for max-width in its prebuilt classes; otherwise just inject it on your div togetehr with “…embed-responsive… myvideo mx-auto…etc.”