非全屏 FLV 播放
我正在构建一个全屏演示,需要模拟 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试将组件参数中的“scaleMode”参数设置为“noScale”?
Try setting the "scaleMode" parameter to "noScale" in the component's parameters?
该故障似乎是由于舞台上有一个
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