[whatwg] Full screen for the <video> element
kornel at osiolki.net
Wed Mar 21 13:39:28 PDT 2007
On Wed, 21 Mar 2007 19:30:13 -0000, Simon Pieters <zcorpan at gmail.com>
>> Shouldn't the video API include a way to toggle full screen on/off?
> Browsers are allowed to provide full screen, however there's no API for
> it. Entering fullscreen should only be under the control of the user,
> otherwise the author could hijack the user's screen and no way to get
> out of it (e.g. as soon as the user tries to exit fullscreen, the script
> goes back to fullscreen).
Couldn't this be protected in a similar way pop-up blocking works? If not,
browsers could simply display confirmation dialog box before entering
fullscreen (some sort of protection is neccessary to protect against
phishing and annoyance).
I think Mihai has a valid point here -- if there's no API for fullscreen,
custom players won't be able to provide UI for it or will try to fake it.
I suggest adding fullscreen() (toggleFullscreen? enterFullscreen?) method
that returns false if UA refused to enter fullscreen:
regards, Kornel Lesiński
More information about the whatwg