Search code examples
actionscript-3flashflvplayback

Why is FLVPlayback with no skin render as invisible?


I run the following code using Adobe Flash Professional CS5.5, Flash Player 11.2.202.235, ActionScript 3:

var camera:Camera = Camera.getCamera();
var localVideo:FLVPlayback = ...; // Instantiated by the IDE

[..]

localVideo.getVideoPlayer(localVideo.activeVideoPlayerIndex);
videoPlayer.attachCamera(camera);

Normally, the the local camera's feed shows up inside localVideo, but if I set the FLVPlayback skin to "none" the video component doesn't render at all (it's fully transparent). All I'm trying to do is render a FLVPlayback for a live video feed without any buttons. Any ideas?


Solution

  • Upon further investigation it turns out that when skin is set to "none" you need to make explicitly mark the video player as visible:

    videoPlayer.visible = true;
    

    Does anyone know why that is?