background preloader

Video

Facebook Twitter

Video for Everybody! Video for Everybody is simply a chunk of HTML code that embeds a video into a website using the HTML5 <video> element, falling back to Flash automatically without the use of JavaScript or browser-sniffing. It therefore works in RSS readers (no JavaScript), on the iPhone / iPad (don’t support Flash) and on many browsers and platforms. Thanks to the rapid adoption of HTML5 video happening right now, Video for Everybody isn’t the only solution around.

It is not a neatly packaged, fully-featured solution for those unfamiliar with HTML. VfE is for developers who either want something really simple they can quickly use on their blog or websites, or as a good starting point to develop their own custom solution. How It Works If your browser supports it, HTML5 video is used. If HTML5 video is not supported, Adobe Flash is used. Finally, if all else fails, a placeholder image is shown and the user can download the video using the links provided. VfE The Code Here follows the full source code. Using. Make an HTML5 video a background. Tubular, a YouTube Background Player jQuery Plugin | Sean McCambridge Design. Video controls:Play | Pause | Volume Up | Volume Down | Mute Tubular is a jQuery plugin that lets you set a YouTube video as your page background.

Just attach it to your page wrapper element, set some options, and you're on your way. $(page content wrapper element).tubular(options); Tubular's hello, world Assuming you're happy with the default options and you use a wrapper div with the id of wrapper, you simply attach to your wrapper div and specify the video you want to load: and Presto! ... kittens in your website background! A word of caution Tubular does not design your website for you. Options and defaults ratio: 16/9 // usually either 4/3 or 16/9 -- tweak as needed videoId: 'ZCAnLxRvNNc' // toy robot in space is a good default, no? HTML5 video and audio tags in all major browsers. HTML 5 Video 'Full-Screen' | Danny van Kooten. A few days ago I was playing around with HTML 5 and it’s new (popular) video tag! The result in short: I love(d) it! Getting it to work in all the major browsers wasn’t that hard at all.

I didn’t even use nasty JavaScript hacks for that, just some basic mark-up fallbacks. But.. I missed a functionality in all the video players: A full-screen mode. Wouldn’t be that hard to write a ‘full-screen’ function using jQuery, would it? That’s why I decided to write a quick and dirty jQuery hack that somewhat gives a full-screen feeling.

The basic mark-up for the video tag, works cross-browser Let me start with how I set up my video tag to work in all the major browsers. The only major drawback of this method is that I had to use 3 different file types, wmv, mp4 and ogg. I added a simple inline style rule to make it more obvious for the visitor that they can click on the video, we’ll add some more evidence later on in the script. Adding a double click event. Increasing the video size. That’s all! Fullscreen HTML5 Video Support How To | By Alexander-Derek Rein.