       }
     }
 
-    private function onStartPlay(ev:ClientEvent):void {
-      this.currentState = "playing";
-      this.callAPI(EVENT_STREAM_STARTED);
-    }
-
     public function onPlayStatus(ev:Object):void {
       video.clear();
       client = null;

      this.ns = ev.data.ns;
      ev.data.ns.bufferTime = config.buffer;
      ev.data.ns.client = this;
    }

    private function onStopped(ev:ClientEvent):void {

  import flash.display.StageScaleMode;
  import flash.events.Event;
  import flash.events.MouseEvent;
  import flash.events.NetStatusEvent;
  import flash.external.ExternalInterface;
  import flash.media.Microphone;
  import flash.media.SoundMixer;
