我如何全屏显示Videodisplay而不是整个应用程序?

时间:2012-06-22 00:11:55

标签: flex actionscript red5 videochat

我正在使用Red5进行Flex视频聊天。我正在使用以下代码:

    stage.fullScreenSourceRect = new Rectangle(vidDisp.x,vidDisp.y, vidDisp.width, vidDisp.height);
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.displayState = StageDisplayState.FULL_SCREEN

这段代码给了我一个奇怪的半切全屏。有没有人知道其他任何方式?

感谢。

1 个答案:

答案 0 :(得分:0)

@Siddharth这里是该实现的videoContainer:

<!--Video Player-->
<mx:Box id="videoContainer" width="100%" height="{Math.floor(this.width * 0.6)}">
    <mx:VideoDisplay id="player" width="100%" height="100%" autoPlay="false" autoRewind="false" bufferTime="4" playheadUpdateInterval="1000"  />
</mx:Box>
相关问题