简体   繁体   English

全屏上的Flash Projector

[英]Flash Projector fullscreen on video

I'm setting a fullscreen in a Projector flash using: 我正在使用以下方法在投影机闪光灯中设置全屏:

stage.displayState = StageDisplayState.FULL_SCREEN;

Next I load a video (flv with a swf player) and I add in a "container" movieclip called "windowSmall" using: 接下来,我加载视频(带有swf播放器的flv),然后使用以下命令添加一个名为“ windowSmall”的“容器”动画片段:

loader = new Loader();
loader.load(new URLRequest(path_to_swf));
windowSmall.addChild(gallery);

After I add the video to windowSmall, the video instead of been displayed in the window is took to fullscreen. 将视频添加到windowSmall后,该视频将被全屏显示,而不是在窗口中显示。 Then I have to press ESC to exit the fullscreen mode of the video (and the projector lose his fullscreen too). 然后,我必须按ESC键退出视频的全屏模式(投影机也将失去全屏模式)。

Anyone know why the loaded video is opened in fullscreen and how to avoid it? 有人知道为什么加载的视频以全屏模式打开以及如何避免吗? I want the the projector is fullscreen, but the loaded video will be simply as his original dimensions inside the container. 我希望投影仪是全屏的,但是加载的视频将只是其在容器中的原始尺寸。

I've found the solution: you have to add 我找到了解决方案:您必须添加

istanceNameOfFLVPlayback.fullScreenTakeOver = false;

inside the swf that has the FLV and the FLVPlayback 在具有FLV和FLVPlayback的swf内部

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM