开发者

VideoDisplay fullscreen

How does one do fullscr开发者_如何学运维een 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,


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜