Need help with a project I am currently working on.
I have been trying for a while now to find a way to add a CMS Video background to a collection. See below
Actually with Sprout you can. I did not know that. It auto mutes the sound and shows a mute button overlay. You can add a background=true parameter so it removes all controls.
This code is working on a pen I just tested. Here is a live view.
Also i tried Viemo but still no luck and its even worse. There is a huge space on the sides for some reason and still no auto play and has a huge play button on it.
Not sure what size but it should not make an issue as when i use the same video on a non CMS page it works fine. Also I just tried a lot of different videos it just seems on CMS its not working.
Videos have ratios. Knowing the ratio is important so you can apply the right padding to the parent container to ensure the video fills the container, yet maintains the correct aspect ratio.
The demo below uses a video that is 16:9. I am using the Vimeo player API and some simple HTML. This would work in a HTML embed on Webflow. If you wanted to constrain the video size, you would add a width to the containing element. Note: With Vimeo the ?background option requires a paid account.
Thanks once again.
I do have a paid account with them.
How would I go around to constrain the video size, that would add a width to the containing element?
Sorry but I am still none the wiser. Not sure what i should be doing. The section is perfect size so shouldn’t effect the video but yet im still stuck with these horrible white lines on either side of my video.
Hi all, it would be nice if anyone could share a simple guideline on how to get a CMSvideo link from vimeo to play automatically and without controls filling a section width and height.