var myVideo:FLVPlayback = new FLVPlayback();
myVideo.source = "images/video1.mp4";
myVideo.align = StageAlign.TOP_LEFT;
myVideo.width = this.width-100;
myVideo.height = this.height-100;
myVideo.x = this.width/2 - myVideo.width/2;
myVideo.y = this.height/2 - myVideo.height/2;
myVideo.scaleMode = VideoScaleMode.EXACT_FIT;
myVideo.skin = "SkinOverAllNoCaption.swf";
myVideo.visible = false;
myVideo.autoPlay = false;
myVideo.fullScreenTakeOver = false;
this.addChild(myVideo);
myVideo.fullScreenButton.addEventListener(MouseEvent.CLICK, fullScreenVideo);
function fullScreenVideo(e:MouseEvent):void
{
myVideo.fullScreenTakeOver = true;
}上面的代码不起作用。FLVPlayback中的fullScreenButton不起作用。
如何在FLVPlayer中使用全屏按钮?
发布于 2013-12-07 02:36:57
你想要达到什么目的?只是为了把你的视频切换到全屏吗?您不需要将侦听器附加到该按钮,在这种情况下,它可以开箱即用。只需检查您是否在html参数中设置了适当的设置:它需要有allowFullScreen="true"
https://stackoverflow.com/questions/20427438
复制相似问题