2

How does one do fullscreen with VideoDisplay?

I am using:

stage.fullScreenSourceRect = new Rectangle(video.x, video.y, video.width, video.height);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.displayState = StageDisplayState.FULL_SCREEN;

But this does not allow me to go back to normal screen, not even i use:

stage.displayState = StageDisplayState.NORMAL

Thanks,

Omar Mir
  • 1,500
  • 1
  • 19
  • 39

2 Answers2

3

I cannot test this right now but you have written stage.displayState == StageDisplayState.NORMAL with == instead of =.

Instead of assigning the value StageDisplayState.NORMAL to stage.displayState you simply compare the two.

Rob Fox
  • 5,355
  • 7
  • 37
  • 63
  • 1
    yeah, == will do a comparison and return a boolean value. – midhunhk Aug 01 '11 at 07:43
  • Still nothing, sorry that was my typo - but, didn't work still on the playbook. – Omar Mir Aug 01 '11 at 23:35
  • I don't understand if you are getting to full screen and can't get back or you can't even get to full screen. – Rob Fox Aug 02 '11 at 05:47
  • Hi Rob, I can get to fullscreen but not back. Setting the stage to normal does nothing, i expect its because all playbook apps run in fullscreen anyway. – Omar Mir Aug 03 '11 at 04:06
0

From the playbook dev support forums, you do not use StateDisplay in playbook for video maximization because the screen already runs in StageDisplay.FULLSCREEN_INTERACTIVE so it doesn't work - set the video dimensions to the size of the screen. And then back again to reduce.

Omar Mir
  • 1,500
  • 1
  • 19
  • 39