Re:BigScreen — Javascript library for HTML5 Fullscreen API
by rdoherty on Monday August 27, 2012 @04:43PM
(#4440797)
To clarify I mean a onerror callback would be nice to have if something goes wrong when attempting to go fullscreen. If I have some time I'll write a patch!
Re:BigScreen — Javascript library for HTML5 Fullscreen API
by bdougherty on Monday August 27, 2012 @05:06PM
(#4440923)
My bad! There is a BigScreen.onerror, but I missed it in the docs.
It should cover most things, but I didn't fully test it. I also couldn't get any browser to fire the native event in my testing.
This library could use error detection and handling as there are situations where fullscreen could be aborted or fail to start.
It's much better to attempt going fullscreen and have callbacks for errors and successfully entering fullscreen mode. Users can have preferences set to not allow it, press ESC during the transition or a number of other scenarios can occur.
There's also some CSS fixes between browsers that could be included. Safari and Chrome don't stretch the element to 100% monitor width and don't apply a background color by default so you can see 'through' the fullscreen window.
That being said it's good someone is working towards something that's relatively cross-browser. The fullscreen API right now is extremely varied but a really awesome tool for advanced web apps.