I am working on a grid of videos that need to be displayed side by side, so I have set both padding and margin to 0 using Bootstrap.
However, I am facing an issue where the videos initially fill the parent div completely but when they start playing, some videos shrink causing white gaps in the div, which is not desired.
It seems like the CSS rules are not being followed properly or it could be a video aspect ratio problem for which I don't know how to find a solution.
You can view an example of the problem on JSFiddle here.
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<div align="center" class="embed-responsive embed-responsive-16by9" >
<video class="embed-responsive-item" autoplay loop poster="http://thumbs.gfycat.com/<%= title %>-thumb360.jpg">
<source src=<%= gif.webmurl %> type="video/webm">
<source src=<%= gif.mp4url %> type="video/mp4">
</video>
</div>
</div>