   import flash.system.Security;
   import flash.text.TextField;
 
-  // TODO: Add external interface for play, pause, mute and unmute
   public class Player extends Sprite {
 
     private var posterUrl: String;
     private var videoUrl: String;
+    private var muted: Boolean;
+    private var autoPlay: Boolean;
+
+    private var videoPlaying: Boolean;
 
     private var poster: Loader;
     private var video: Video;

      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 {

  import flash.events.Event;
  import flash.events.NetStatusEvent;
  import flash.external.ExternalInterface;
  import flash.media.SoundTransform;
  import flash.media.Video;
  import flash.net.NetConnection;
  import flash.net.NetStream;
