Comment 10 for bug 1331475

Revision history for this message
Olivier Tilloy (osomon) wrote :

> The only case where we need a way out is gaming, because games use
> taps for their own purposes. For viewing media, you can tap the media
> and bring onscreen controls (this is being accomplished using the
> media services designs / spec) and always exit gracefully (like
> youtube, iOS native media play, etc.)

True, but for this to work we need media-hub integration in oxide. Experimental opt-in support for audio playback has landed (for webapps), but video playback still requires significant work. Which means that for the time being, we’re stuck with whatever controls the HTML5 player provides. And this can be an issue, see e.g. bug #1438821.
So, again, for the time being we need a browser way to exit fullscreen mode, even for media playback.

> So for web games only, we recommend the solution we proposed because
> A) discovery of that particular behavior in the bottom edge will be
> unlikely

Of course we’d need some sort of hint. Chrome on Android displays a tooltip when entering fullscreen that explains the user how to exit (by swiping from the top edge in their case), and this tooltip fades out after 3 seconds, so it’s not very intrusive. Other options include displaying a banner, much like chromium on desktop does (and I believe Firefox on android too), with 'Allow' and 'Cancel' buttons, and of course a way to exit (using a gesture) once fullscreen has been allowed. This is a bit more intrusive, but also gives more control to the user.

> B) this is only for casual gaming on the web... actual full screen
> games will have their own controls. I can't think of another use case,
> can you?

If they are HTML5 games, they’re not required to provide controls to exit fullscreen. Nothing in the HTML5 fullscreen specification mandates the presence of controls.

> C) the bottom edge is already occupied with tabs...
> we don't want that behavior to change.

In the current implementation, not when in fullscreen mode. IIRC I discussed this with Giorgio and the guidance was that the swipe from bottom edge gesture was unnecessary/unwanted while in fullscreen mode.

Note that this gives us an opportunity to kill two birds with one stone by enabling the bottom edge swipe gesture to reveal open tabs in fullscreen, and exiting fullscreen mode for the current tab when this is done.
Does that sounds acceptable? (we would still need some sort of notification to teach the user how to exit fullscreen when entering it)