我怎样才能扩大视频全屏没有在AS3受影响的接口项目? [英] How can I enlarge video fullscreen without the affected interface project in as3?
问题描述
我有一个问题,我不知道如何来纠正它。
I have a problem I do not know how to correct it.
我想在我的项目工作的全屏幕。但整个屏幕的视频,我想告诉当您点击控制面板上的按钮,唯一的视频按钮在屏幕的整个视频显示。
I want to work a full-screen in my project. But the video of the entire screen, and I want to show the entire video of the screen appears when you click the button on the control panel only video of a button.
不知道解决我想帮助我的问题。我用这个code在AS3:
Do not know the solution to the problem I want to help me. I USE this code in AS3:
stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;
例如:
https://drive.google.com/file/d/ 0B9BcYjTM8tPoMVVOQTJhUl84b3M /有何看法?USP =共享
示例图像:
推荐答案
您不能做你想要使用的FLVPlayback
组件的全屏按钮,因为它是有关什么在舞台上的全屏模式。相反,你可以使用另一个按钮,在舞台上激活您的视频播放器的全屏模式。
You can not do what you want using the full-screen button of the FLVPlayback
component because it's related to the full-screen mode of the stage. Instead, you can use another button in your stage to activate the full-screen mode of your video player.
拿这个例子,我用了两个按钮,第一个按钮全屏整个动画:第二个到全屏当动画是在全屏显示模式的视频:
Take this example where I used two buttons, 1st button to full-screen the whole animation and the 2nd one to full-screen the video when the animation is on full-screen display mode :
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.addEventListener(FullScreenEvent.FULL_SCREEN, function(e:FullScreenEvent){
// disable the full-screen mode of the FLVPlayback component everytime the stage leaves the full-screen mode
if(!e.fullScreen){
player.fullScreenTakeOver = false;
}
})
// player is my FLVPlayback component
// activate video smoothing (option)
player.getVideoPlayer(0).smoothing = true;
// disable the full-screen mode of the FLVPlayback component
player.fullScreenTakeOver = false;
// this button is to activate the full-screen mode of the FLVPlayback component
btn_player_fullscreen.addEventListener(MouseEvent.CLICK, function(e:MouseEvent){
// if our stage is on fullscreen mode
if(stage.displayState == StageDisplayState.FULL_SCREEN){
// activate the full-screen mode of the FLVPlayback component
player.fullScreenTakeOver = true;
}
})
// this button is to activate the full-screen mode of the stage
btn_fullscreen.addEventListener(MouseEvent.CLICK, function(e:MouseEvent){
if(stage.displayState != StageDisplayState.FULL_SCREEN){
stage.displayState = StageDisplayState.FULL_SCREEN;
}
})
您可以看到这个code工作这里(我没有使用皮肤我视频播放器)。
You can see this code working here ( I didn't use a skin for my video player ).
当然,这只是一个例子,说明你的方式去做你在找什么,你必须要提高它适应您的特定需求。
Of course, this is just an example to show you a manner to do what you are looking for, you have to improve and adapt it to your specific needs.
希望能有所帮助。
这篇关于我怎样才能扩大视频全屏没有在AS3受影响的接口项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!