       this.ns = ev.data.ns;
       ev.data.ns.bufferTime = config.buffer;
       ev.data.ns.client = this;
+      ev.data.ns.addEventListener(NetStatusEvent.NET_STATUS, onNetStatusEvent);
+    }
+
+    public function onNetStatusEvent(ev:NetStatusEvent):void {
+      if (ev.info.code === 'NetStream.Buffer.Full'  || ev.info.code === 'NetStream.Unpause.Notify') {
+        this.currentState = "playing";
+        this.callAPI(EVENT_STREAM_STARTED);
+      }
     }
 
     private function onStopped(ev:ClientEvent):void {

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


      client.addEventListener(ClientEvent.NETSTREAM_CREATED, onNetStreamCreated);
      client.addEventListener(ClientEvent.STOPPED, onStopped);
      client.start();
    }

