本文介绍了AS3视频全屏模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了一个视频播放器,但需要添加一个按钮,点击后,把视频放到全屏观看模式。我不想按比例上的所有阶段 - 只是视频。我似乎无法找到如何做到这一点 - 我认为这将是很容易
I have created a video player, but need to add a button that, when clicked, puts the video into full-screen viewing mode. I don't want to scale everything on the stage - just the video. I can't seem to find how to do this - I thought it would be easy.
推荐答案看看这个作品:
stage.displayState = StageDisplayState.FULL_SCREEN; videoPlayer.x = 0; videoPlayer.y = 0; //save the width and height in temp vars //for restoring them later. videoPlayer.width = stage.fullScreenWidth; videoPlayer.height = stage.fullScreenHeight;更多推荐
AS3视频全屏模式
发布评论