Make Full Screen Mode Default

Topics: Windows 8 JavaScript
Aug 31, 2012 at 3:50 PM

I'm writing a WinRT app with HTML5/JavaScript and am using the PlayerFramework to show a series of short how-to videos. I want to present all the videos in a grid and then, when the use selects one, redirect them to a page where they can watch the video. Pretty basic.

What I'd like to do is to have the player start in full screen mode. I don't see a property on the video element for this. Is there something in the PlayerFramework that would allow me to do this?

 

Thanks.

Developer
Sep 4, 2012 at 4:42 PM
Edited Sep 4, 2012 at 5:06 PM

To make the MediaPlayer control be full screen by default (initially), set the isFullScreen option to true.

If you don't want to allow the user to toggle out of full screen (e.g. using the full screen toggle button, ESC, or F11), then you will want to also set isFullScreenVisible to false and isFullScreenEnabled to false