非全屏FLVPlayback [英] Non-fullscreen FLVPlayback
问题描述
我正在构建一个全屏演示,其中需要模拟一个YouTube视频.我拖动了播放外部.flv文件的视频.
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;
但这不会影响问题.
无论如何,舞台都可以全屏显示并以正常大小播放视频吗?
Is there anyway to have the stage in full-screen mode and play the video at it's normal size?
Thaks
我正在使用Flash CS3 Pro并生成一个.exe.
I'm using Flash CS3 Pro and generating a .exe.
推荐答案
故障似乎是由舞台上的flvPlayback
组件引起的,而不是时间轴的第一帧引起的.
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.
最后将flvPlayback
与脚本一起放置在舞台上也应该起作用.
Finally placing the flvPlayback
on stage with script should work as well.
在所有情况下都请记住video.fullScreenTakeOver = false;
Just remember video.fullScreenTakeOver = false;
in all cases
这篇关于非全屏FLVPlayback的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!