Jump to content

Chrome for Android now shipping with Fullscreen API


codingcampbell
 Share

Recommended Posts

In addition to shipping WebGL enabled by default, it looks like the Fullscreen API is also available! This is especially important since Chrome for Android no longer lets you hide the address bar with `scrollTo`

 

Install the latest Chrome for Android and point it to this demo: http://bit.ly/viRGvo

 

You should be able to safely add this to your games - just check for the `requestFullscreen` function at runtime.

 

One caveat: the function only works inside a user input event (e.g. touch event, click, etc.). Requesting fullscreen outside of an input event callback will silently fail.

 

You can read more about using the Fullscreen API here: http://updates.html5rocks.com/2011/10/Let-Your-Content-Do-the-Talking-Fullscreen-API

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...