       //posterContainer.visible = false;
 
       stream = new NetStream(connection);
+      stream.soundTransform = new SoundTransform(muted ? 0 : 1);
       stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
       video.attachNetStream(stream);
 
       stream.play(videoUrl);
+      if (!autoPlay) pause();
     }
 
   }

      Security.allowDomain("*");
      Security.allowInsecureDomain("*");

      var field: TextField = new TextField();
      field.text = ExternalInterface.available ? "Available" : "Unavailable";
      addChild(field);

      //posterUrl = loaderInfo.parameters['poster'];
      videoUrl = loaderInfo.parameters.video;

      //setBackgroundColor();
      registerExternalMethods();
      //if (posterUrl) loadPoster();
      //loadVideo();
    }

    private function setBackgroundColor(): void {

    }

    private function registerExternalMethods(): void {
      ExternalInterface.addCallback("play", play);
      ExternalInterface.addCallback("pause", pause);
      ExternalInterface.addCallback("paused", isPaused);
      ExternalInterface.addCallback("mute", mute);
      ExternalInterface.addCallback("unmute", unmute);
      ExternalInterface.addCallback("muted", isMuted);
      ExternalInterface.call("DivineVideoPlayer.ready");
    }

