Auto-play and muted YouTube Video Background

Sep 16, 2014

I needed a reliable way to use video as a background element, and HTML5 video requires too much up front work. For instance, you have to edit a base mp4, and convert it to atleast 2 other types (WebM and OGG) for proper browser support. Obviously, uploading a video to YouTube makes that so much easier, as they deal with the browser support part of things for us. Using this script makes things so much easier, just replace the Playlist and videoId variables, and you're set, the YouTube API does the rest.

Filed under:

design code

Further Reading

Life, lessons & the pursuit of happiness

DIY floating shelf project.

Dec 11, 2016

Hey! I made a floating shelf, and I wanted to share how I did it.

Read more

Soft enamel taco pins are here!

Aug 18, 2016

No lapel is complete without a taco pin.

Read more

Taco Ipsum — now every day can be taco tuesday … in your placeholder text.

Mar 4, 2016

Because it’s important to have another placeholder text generator in your life, and tacos are tasty.

Read more