Background Video Demo
Divi's own background video settings, with a video from a video service as the source. Every example below is an ordinary Divi section or column with a background video.
A whole section
A full-width section with a YouTube video behind it. The video plays muted and in a loop, and the text and modules stay on top.
How the section above is set up
In the section's settings, under Background > Video, Video Source is set to YouTube and the link is pasted in, with YouTube Privacy-Enhanced Mode on. The section also has a dark background color, which shows until the video plays and on devices that don't play it.
When a YouTube video starts, YouTube briefly shows the video's title and its logo. Crop YouTube's Title And Logo is on by default and crops them away.
YouTube's player controls
Watch the section when the video starts, and again when it loops: for about four seconds, YouTube shows its player controls on the video. Play and pause, previous and next in the middle, and its links along the bottom. YouTube shows them whenever a video starts, loops or plays again after a pause, and no YouTube setting removes them. Since they sit in the middle of the video, they can't be cropped away either.
That's why Divi Video Pro has Delay Video Play To Hide YouTube's Player Controls. With it on, the video stays hidden while the controls show, and the element's background image shows instead, or the video's YouTube thumbnail when the element has no image. The video then appears about four seconds later, and the image shows again for a moment each time the video loops. It's a trade-off: a clean background, a little later. The setting is off on this site, so what you see above is YouTube's default behavior. Both settings are under Divi > Divi Video Pro > Background Videos.
Video: Ultra High Definition (4K) View of Planet Earth, filmed from the International Space Station, courtesy of NASA.
Columns
Rows, columns and modules can have a background video too. The column next to this one plays a Vimeo video, with Vimeo Do Not Track on.
Vimeo plays a video as a background only when the video belongs to a paid Vimeo plan, and its background player has no controls or title, so nothing needs to be hidden.
Vimeo
Big Buck Bunny, playing as the column's background.
Video: Big Buck Bunny, © Blender Foundation, CC BY 3.0.
What can stop a background video
A background video starts by itself, muted. The visitor's device and browser have the last word, and the video service decides which videos it plays:
- Power saving. iPhone and iPad don't start video by themselves in Low Power Mode, and many other phones don't with battery or data saving on.
- Browser settings. Visitors can block autoplay on every site or on one, and some browsers on phones don't start video by themselves at all.
- Reduced motion. Visitors who have asked their device for less motion see the background color or image instead of a video from a video service.
- The video itself. A video that has been removed, made private or blocked from embedding doesn't play. A Vimeo video plays as a background only on a paid Vimeo plan, and a few Vimeo videos don't play on iPhone at all.
In each of these cases the element's background color or image shows instead, without a play button, so the page still looks finished. Give every element with a background video a background color or an image that matches the video.
Good to know
- Background videos have no sound, and the source is one setting for every screen size.
- YouTube shows its player controls for about four seconds when the video starts and each time it loops, unless Delay Video Play To Hide YouTube's Player Controls is on.
- A background video can't wait for a click the way the Video Pro module can. It loads the video service's player when it comes into view.
- Divi's own Pause Video While Not In View is on by default, so a background video pauses when you scroll past it and carries on when you come back.