     private function onStopped(ev:ClientEvent):void {
       video.clear();
       client = null;
+      this.callAPI(EVENT_STREAM_STOPPED);
       if (urlParsed) {
         start();
       }

  public class Player extends Sprite {
    private static const EVENT_STREAM_STARTED:String  = "streamStarted";
    private static const EVENT_STREAM_PAUSED:String  = "streamPaused";
    private static const EVENT_FULLSCREEN_ENTERED:String  = "fullscreenEntered";
    private static const EVENT_FULLSCREEN_EXITED:String  = "fullscreenExited";


      urlParsed = null;
      ns = null;
      client.stop();
      this.currentState = "stopped";
      this.streamHasAudio = false;
      this.streamHasVideo = false;
