HTML and CSS Reference
In-Depth Information
Figure 15-1. Our demo not running fullscreen
Figure 15-2. Our demo running fullscreen; note the lack of system and address bar
You can see from Figures 15-1 and 15-2 that fullscreen makes a huge difference for the player, who can now enjoy
a fully immersive experience as opposed to one that just feels like browsing.
Creating a Fullscreen Button
In order for your players to switch to fullscreen you need to provide them with a button. Remember that if you were to
call the API programmatically it wouldn't work; you have to call requestFullscreen from a touch or click event handler.
 
Search WWH ::




Custom Search