Full screen background video

I'd like to loop a video in the background of a theme I'm working on. I can handle code so I'd like to avoid installing a plugin if I could. Any ideas of how this is done?