Omar Mir
Omar Mir

Reputation: 1624

VideoDisplay fullscreen

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,

Upvotes: 2

Views: 1262

Answers (2)

Omar Mir
Omar Mir

Reputation: 1624

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.

Upvotes: 0

Rob Fox
Rob Fox

Reputation: 5571

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.

Upvotes: 3

Related Questions