Search code examples
apache-flexactionscriptred5videochat

How do I just fullscreen the Videodisplay and not the whole application?


I'm working on a video chat in Flex with Red5. I'm using the following code:

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

This code gives me a weird half cut fullscreen. Does anyone know any other way?

Thanks.


Solution

  • @Siddharth here's the videoContainer from that implementation:

    <!--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>