wp-video-embed-privacy
wp-video-embed-privacy copied to clipboard
Video is overlapping with sidebar due to width of video-wrapped
In almost all cases the videos are now too wide for my website. It overlaps with the sidebar in Divi and is bigger than the viewport on mobile devices.
This is because of:
<div class="video-wrapped" style="width: ' . $w . 'px; height: ' . $h . 'px; background-image: url(\'' . $preview . '\')"
in video-embed-privacy.php
If I delete width: ' . $w . 'px; height: ' . $h . 'px;
and instead use CSS styling like this through the Custom CSS field of my theme:
.video-wrapped { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; } .video-wrapped iframe, .video-container object, .video-container embed, .video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
everything becomes responsive and fits nicely.
Can you test with 2.2? I added a max-width:100% and some more style to fix aspect / other problems.
Is there any chance that a newer version will be released soon? I'd prefer to have "stamped" versions of plugins in my productive setups.
Or maybe is there the option to support github-updater (https://github.com/afragen/github-updater)? Can be done by including one or two comments. I can draft a issue and create a PR if you'd like.
There is an updater included. If you download the plugin from github, it should pull updates from github.
The main problem is that I do only mark plugins as non-pre-release if I know that they work on several sites. So far, I am getting very few feedback on how good it works, so this is why I'm not marking the releases as stable. The pre-releases include an updater as well, but that updater is also not well-tested ;-).
Hi, I have the opposite issue in my blog: the screenshot and video are too small. I installed 2.2 but still see no way to override style="width: 500px; min-height: 281px; I would need a widht of 705. That does not mean a thing though, since I am a real beginner when it comes to CSS. Maybe someone can help me out here.
Another issue for me is the missing responsiveness. On smartphones the video is too wide, even with 2.2.
Other than that, 2.2 works fine here with latest WP. Thanks for your work!
Problem temporarly solved with Creanimo's hack in the opening post. Works fine and is responsive (with 2.2 installed). Downside is, that it will not survive a plugin update.