I'm making a website that has a fullscreen video background, for the header section. I would like for the site to load and run as fast and smooth as possible, so I don't know if it could be trouble that the homepage has to load a 50-100mb video before running (even though it probably will stream the video, as it loads - but I know nothing about how this works).
My first part of this question is, that I very rarely stumble across video-backgrounds that gets stuck loading. Is that because I'm lucky with the connections I use, or are the people who are making the video backgrounds just smart and somehow compress the video to a small file-size?
The second part of this question is, which way is the best to implement this video background on my clients website? Is it to use the HTML5 <video>
tag? (found in this link):
<video style="width: 1776px; height: 1009px; margin-left: -98px;
margin-top: 0px;" id="videobcg" class="fill" width="1580" height="898"
preload="auto" autoplay="true" loop="loop" muted="muted" volume="0"
poster="url-to-poster-picture.jpg">
<source src="sites/default/files/videos/basic_home.mp4" type="video/mp4">
<source src="sites/default/files/videos/basic_home.webm" type="video/webm">
Sorry, your browser does not support HTML5 video.
</video>
... or is it to use YouTube or Vimeo, by inserting it as an <iframe>
? I guess the real question is, if my hosting company (One.com) offer me more bandwidth than YouTube or Vimeo? Or if there's a recommended way out there to do this?
And if a comment can be made about what's better for SEO-purposes, then that would be appreciated as well.