   import flash.net.URLRequest;
   import flash.system.Security;
 
+  [SWF(backgroundColor="0x000000")]
   public class Player extends Sprite {
 
     private var posterUrl: String;


    private function connectStream(): void {
      video = new Video(stage.stageWidth, stage.stageHeight);
      addChild(video);

      stream = new NetStream(connection);
      stream.soundTransform = new SoundTransform(muted ? 0 : 1);

      loop = loaderInfo.parameters.loop == "true";
      muted = loaderInfo.parameters.muted == "true";
      autoplay = loaderInfo.parameters.autoplay == "true";

      if (posterUrl) {
        loadPoster();
