Live data from Hacker News

BigScreen — Javascript library for HTML5 Fullscreen API

brad.is

21–24 of 24 posts

Re: BigScreen — Javascript library for HTML5 Fullscreen API

#21

So... this appears to do little more than normalize prefixes. So why not just throw a normalization gist up? The first part is: HTMLElement.prototype.requestFullscreen = HTMLElement.prototype.requestFullscreen || HTMLElement.prototype.webkitRequestFullscreen || HTMLElement.prototype.webkitRequestFullScreen || HTMLElement.prototype.mozRequestFullScreen;

It does way more normalizing than just the name of the function. It works around a number of bugs when the element is in an iframe, and it has a fallback if you're using it for video (which was the main reason I wrote it).

I suggest updating your "why should I use it" section then. I also saw a trivial polyfill and stopped reading.

I also like the idea of an option to fall back to making the element fill the page if the browser doesn't support the fullscreen API. You could even breifly display the hotkey to put the browser window in fullscreen if it supports it.

Re: BigScreen — Javascript library for HTML5 Fullscreen API

#22
Does anyone know of a way to fix the problem when getting out of a fullscreen page in Chrome for Mac? Normally, when trying to exit fullscreen page when the browser is already maximized, it gets thrown out of its workspace - a minor annoyance, but it's irksome enough that I try to avoid using HTML5 fullscreen in web pages.
Post reply on HN