 
       posterUrl = loaderInfo.parameters.poster;
       videoUrl = loaderInfo.parameters.video;
+      loop = loaderInfo.parameters.loop == "true";
       muted = loaderInfo.parameters.muted == "true";
-      autoPlay = loaderInfo.parameters.autoPlay == "true";
+      autoplay = loaderInfo.parameters.autoplay == "true";
 
       setBackgroundColor();
 

      return stream.soundTransform.volume == 0;
    }

    private function setBackgroundColor(): void {
      graphics.beginFill(0x000000, 1);
      graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
      graphics.endFill();
    }

    private function registerExternalMethods(): void {
      ExternalInterface.addCallback("play", play);
      ExternalInterface.addCallback("pause", pause);

      video = new Video(stage.stageWidth, stage.stageHeight);
      addChild(video);

      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();
    }

  }
