         debug("No RTMP streams available.")
       else
         debug("Available RTMP streams: " + bitrates.join(", "))
+    }
 
+    private function createPlayer() : void
+    {
       const kit : PlayerKit = new PlayerKit(movie)
 
       player = kit.player

        player.changeVolumeBy(-.1)
    }

    public function start() : void
    {
      drawBackground()

      stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown)
      stage.addEventListener(Event.RESIZE, handleStageResized)

      debug("Looking up Streamio movie “" + movieID + "”...")

      api.fetchMovie(movieID, this)
    }

    private function drawBackground() : void
    {
      graphics.beginFill(0x000000)
      graphics.drawRect(0, 0, stageDimensions.width, stageDimensions.height)
      graphics.endFill()
    }

    private function handleStageResized(event : Event) : void
    {
      if (view)

      view.dimensions = stageDimensions

      addChild(view)
    }

    private function get stageDimensions() : Dimensions
