       ns = null;
       client.stop();
       this.callAPI('streamStopped');
-      this.currentState = "Stopped";
+      this.currentState = "stopped";
       this.streamHasAudio = false;
       this.streamHasVideo = false;
     }

    private var urlParsed:Object;
    private var savedSpeakerVolume:Number;
    private var fullscreenAllowed:Boolean = true;
    private var currentState:String = "Stopped";
    private var streamHasAudio:Boolean = false;
    private var streamHasVideo:Boolean = false;


    public function pause():void {
      client.pause();
      this.callAPI('streamPaused');
      this.currentState = "paused";
    }

    public function resume():void {
