One way to add a video background to your website is to use the video embed HTML5 feature along with a bit of CSS3 to help your video maintain its position. Though this is an option, it’s not an ideal solution because it doesn’t allow you the control you need to make your videos interactive (if desired) or to determine what device your website is being loaded on. The latter is critical, because many devices won’t run background videos.
There are many different scripts out there for loading videos, and each can be customized to serve your own purposes. However, there are two scripts I recommend, depending on your video source.
Developed by John Polacek at Draftfcb Chicago, this script makes it simple for you to add a background video to your website. You’ll need the jQuery, jQuery UI, and jQuery imagesloaded libraries and plugin to use the script. With this script, you can load videos from any source (though the author recommends Vimeo), and you can even add an interactive playlist.
This is a simple script that’s likewise easy to use; it will call YouTube videos to be loaded as your web page background.
As with any web implementation, test your new video background to make sure it plays on all major browsers and responds as it should (such as with image replacement) on different devices and operating systems. Don’t be afraid to play with the code to add features you want to use, and make it your own! And, if you’re more a designer by heart, you can always hire a freelancer to install these scripts for you.
They’re relatively simple, so an experienced coder should be able to implement them rather quickly and with minimal charge.
Do you have a preferred method of loading videos as web page backgrounds? Have I missed anything that should be included? Let me know in the comments!
Guest Author Brian Morris writes for the PsPrint Design & Printing Blog. PsPrint is an online commercial printing company. Follow PsPrint on Twitter @PsPrint and Facebook.
A Knowbility conference is coming up on the West Coast. It’s Access U @ CSUN, toward the end of February. Learn from accessibility experts such as Shawn Henry, Jennison Asuncion, Denis Boudreau, Molly Holzschlag, Derek Featherstone and others.
Two announcements from the W3C relating to accessibility are important news today. The first is a couple of new notes relating to WCAG 2.0. You can find links to the relevant documents here. The other announcement is the first draft of the Media Accessibility User Requirements. The W3C description of the media requirements document: “It first provides an introduction to the needs of users with disabilties in relation to audio and video. Then it explains what alternative content technologies have been developed to help such users gain access to the content of audio and video.”
Waste Chicken Feathers Make Durable Biodegradable Plastic. A science experiment from grade school days that I remember is that the aroma of burning hair or burning chicken feathers was an indicator that there was protein in whatever was burning. Don’t know why I remember that particular science experiment above all others, but this story brought it back.