W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2011

[whatwg] Entering fullscreen when already in fullscreen mode [was: Fullscreen]

From: Glenn Maynard <glenn@zewt.org>
Date: Tue, 18 Oct 2011 22:15:40 -0400
Message-ID: <CABirCh88W3rqedn1dWPFHp3zKhNe76VmuSyg_LtPdHWZcveZAQ@mail.gmail.com>
On Tue, Oct 18, 2011 at 9:23 PM, Anne van Kesteren <annevk at opera.com> wrote:

> I think it would be kind of nice if the UI and API-based fullscreen were
> aligned. Otherwise you run into all kinds of odd situations.
>
> E.g. API-based fullscreen first. Then via native <video> controls you go
> UI-based fullscreen for a <video> displayed on that page. What happens when
> you exit? You can have the same scenario the other way around, or both can
> be done using solely the UI, or both can be done using solely the API. It
> would be confusing to users I think if you got different results here.


It'd be nice if native <video> fullscreen buttons could be implemented using
the fullscreen API directly.  A really nice side-effect would be that
scripted video controls could behave exactly the same as native controls
(possibly excluding permission checks), including document.fullscreenElement
and the fullscreenchanged event.

It seems like it would need fullscreenElement to be a stack, though, so
exitFullscreen can drop back into the previous fullscreen state.

-- 
Glenn Maynard
Received on Tuesday, 18 October 2011 19:15:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:37 UTC