There have been a few questions on this matter and sadly for me none of them have worked.
First I want to show you a screenshot so you understand what I am asking for
Here is my current code for the embed:
<div class="embedded clear-adblock">
<div style="position: relative !important; width: 100% !important; height: auto !important;">
{% include '@themePath/account/partial/_preview_video_'~videoPlayer~'.html.twig' with {'IS_EMBED': IS_EMBED} %}
</div>
</div>
I have tried adjusting width and height, height with 0 and auto. Played around with positioning and vjs fluid is enabled
2
Answers
I fixed this right after posting this question by removing vjs fluid from videojs and using the following CSS in div:
As in video.js there will be Dynamically rendered classes after you run the HTML file on the browser . So , Don’t put inline css on the embed , inspect the video element and you will get the necessary classes , after you found those essential classes from that video container , style that as you want using embedded css on the same page , I think this will help you .