     }
 
     public function streamStatus():Object {
-      if (this.currentState === 'Playing') {
+      if (this.currentState === 'playing') {
         this.streamHasAudio = (this.streamHasAudio || this.ns.info.audioBufferByteLength);
         this.streamHasVideo = (this.streamHasVideo || this.ns.info.videoBufferByteLength);
       }

    }

    private function onStartPlay(ev:ClientEvent):void {
      this.currentState = "Playing";
    }

    public function onPlayStatus(ev:Object):void {
      this.currentState = "Stopped";
    }

    private function callAPI(eventName:String, data:Object = null):void {

    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;

