The Problem
I want to use a YouTube video as a Bloc background video.
The Solution
Background videos can be easily applied to a Bloc via the sidebar inspector controls, when a Bloc is selected. However, these options only allow you to apply a local video.
If you want to apply a YouTube video, you will need to navigate to the video layer using the layer tree and then set the video Bric Type to YouTube/Vimeo. This will now allow you to input your YouTube embed snippet.
We recommend adding the following suffix to the embed src attribute URL value. This will auto play the video, mute it and hide the player controls.
?autoplay=1&mute=1&controls=0