Flash 投影仪全屏播放视频

发布于 2024-09-12 20:20:29 字数 446 浏览 2 评论 0原文

我使用以下方法在投影仪闪光灯中设置全屏:

stage.displayState = StageDisplayState.FULL_SCREEN;

接下来,我加载一个视频(带有 swf 播放器的 flv),然后添加一个名为“windowSmall”的“容器”影片剪辑,使用:

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

将视频添加到 windowSmall 后, 视频不再显示在窗口中,而是全屏显示。 然后我必须按 ESC 退出视频的全屏模式(投影仪也失去全屏模式)。

有人知道为什么加载的视频会全屏打开以及如何避免它? 我希望投影仪是全屏的,但加载的视频将只是容器内的原始尺寸。

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:

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.
Then I have to press ESC to exit the fullscreen mode of the video (and the projector lose his fullscreen too).

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遥远的她 2024-09-19 20:20:29

我找到了解决方案:您必须

istanceNameOfFLVPlayback.fullScreenTakeOver = false;

在具有 FLV 和 FLVPlayback 的 swf 中添加

I've found the solution: you have to add

istanceNameOfFLVPlayback.fullScreenTakeOver = false;

inside the swf that has the FLV and the FLVPlayback

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文