CMS Video Background. HELP!

Hi there

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

This is the code I am using but for some reason this is not working for autoplay. So it is pointless in a way.

<iframe class='sproutvideo-player'

src=‘;loop=true’ style=‘position:absolute;width:100%;height:100%;left:0;top:0’ frameborder=‘0’ allowfullscreen>

Anyway anyone could help me with this?

Many thanks in advance.

Here is my public share link:

You can’t autoplay a BG video with sound.

Thanks for your reply, Much appreciated.

How do I not play with sound? I do not wish to have sound anyway.

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.

 <iframe class='sproutvideo-player' src='//' width='100%' height='100%' style="position:absolute;" frameborder='0' allowfullscreen></iframe>

Nice video. Well done.

Oh how you have just saved me so much time and stress.
Thank you so much for your help I honestly cant thank you enough!

Now that its inserted on my website there are black lines around the video, well on the edges. Any idea what I have done wrong :laughing:

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.

I really need this sorted as soon as possible.

My main question here is, what is the video size?

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?


The photo above is what i currently have.

FYI: Image not visible.

If a parent has a width defined, the .vwrapper in my demo would be width constrained by its value. The aspect would stay as it is set.

Look at the pen again. You should see what I am saying. Buy me a beer. I am getting thirsty. :wink:

Haha I sure owe you one!!!

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.

I shared a project you can use as a reference in your other post.