If you have the chance to wrap the video code into a DIV you can use the code from THIS POST.
You will have to specify the video file dimensions at the video and the enclosing DIV and you have to make the DIV to not display overflowing content, so the placeholder code might look like this:
Code:
<div class="xw_stretch xw_str_bottom" style="width:320px;height:180px;overflow:hidden;">
<video src="index_htm_files/video.mp4" width=320 height=180 autoplay loop></video>
</div>
If you ommit the xw_str_bottom class the stretching will be done relative to the center, if you replace it with xw_str_top...
See EXAMPLE (very poor resolution for reduced file size).
Unfortunately I can't attach files from this computer.
Bookmarks