Wednesday, November 02, 2011

Native Fullscreen JavaScript API (plus jQuery plugin) | John Dyer's Code

Native Fullscreen JavaScript API (plus jQuery plugin) | John Dyer's Code: "HTML5 is great, but when it was first released, one of the big complaints was that it couldn’t do true FullScreen like Flash. Thankfully, this is changing and native FullScreen support is coming to most browsers in the next few months (no word from the Internet Explorer team).

The API is still heavily in flux especially since the W3C joined in this week. I spent some time working through the differences to implement FullScreen in MediaElement.js HTML5 video player, and it’s working great in Safari 5.1+, Chrome Canary Chrome 15+, or Firefox Nightly. Below I’m going to try to explain how things evolved, where we are today, and then some code that you can play with."

'via Blog this'