非全屏 FLV 播放

发布于 2024-07-09 15:53:16 字数 468 浏览 10 评论 0原文

我正在构建一个全屏演示,需要模拟 YouTube 视频。 我拖动了一个播放外部 .flv 文件的视频。

如果舞台未设置为全屏,它可以正常工作。 但我需要将舞台设置为全屏,如下所示:

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;

问题是,当动画到达视频时,屏幕变黑并且视频无法播放。 我已经设置了实例名称并尝试将以下代码放在框架的操作上:

video.fullScreenTakeOver = false;

但这不会影响问题。

无论如何,有没有办法让舞台处于全屏模式并以正常尺寸播放视频?

谢谢,

我正在使用 Flash CS3 Pro 并生成 .exe。

I'm building a full-screen demo where I need to simulate a YouTube video. I dragged a video that plays an external .flv file.

It works fine if the stage isn't set to full-screen. But I need to set the stage to full-screen like this:

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.scaleMode = StageScaleMode.NO_SCALE;

The problem is that when the animation reaches the video the screen goes black and the video doesn't play. I already setting an instance name and tried putting the following code on the frame's actions:

video.fullScreenTakeOver = false;

But it doesn't affect the issue.

Is there anyway to have the stage in full-screen mode and play the video at it's normal size?

Thaks

I'm using Flash CS3 Pro and generating a .exe.

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

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

发布评论

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

评论(2

烦人精 2024-07-16 15:53:17

尝试将组件参数中的“scaleMode”参数设置为“noScale”?

Try setting the "scaleMode" parameter to "noScale" in the component's parameters?

生死何惧 2024-07-16 15:53:16

该故障似乎是由于舞台上有一个 flvPlayback 组件引起的,而不是时间轴的第一帧上的组件。

最简单的解决方案是将组件放在第一帧上。

或者,如果这不切实际,那么只需将组件放在影片剪辑的第一帧上似乎就可以了。

最后将 flvPlayback 与脚本一起放在舞台上应该也可以。

在所有情况下都请记住 video.fullScreenTakeOver = false;

The glitch seems to be caused by having an flvPlayback component on the stage, but not on the first frame of a timeline.

The easiest solution is to either have the compnent on the first frame.

Alternatively if that's impractical, then simply putting the component on the first frame of a movie clip seems to work.

Finally placing the flvPlayback on stage with script should work as well.

Just remember video.fullScreenTakeOver = false; in all cases

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