       ExternalInterface.addCallback("mute", mute);
       ExternalInterface.addCallback("unmute", unmute);
       ExternalInterface.addCallback("muted", isMuted);
-      ExternalInterface.call("DivineVideoPlayer.ready");
-    }
-
-    private function setBackgroundColor(): void {
-      graphics.beginFill(0x000000, 1);
-      graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
-      graphics.endFill();
     }
 
     private function loadPoster(): void {
       posterContainer = new Sprite();
-      addChild(posterContainer);
+      posterContainer.width = stage.stageWidth;
+      posterContainer.height = stage.stageHeight;
+      addChildAt(posterContainer, 0);
 
       poster = new Loader();
-      poster.width = stage.stageWidth;
-      poster.height = stage.stageHeight;
       poster.contentLoaderInfo.addEventListener(Event.COMPLETE, function(): void {
         posterContainer.addChild(poster);
       });

  import flash.net.URLRequest;
  import flash.system.Security;

  public class Player extends Sprite {

    private var posterUrl: String;


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

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