   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_STREAM_STOPPED:String  = "streamStopped";
     private static const EVENT_FULLSCREEN_ENTERED:String  = "fullscreenEntered";
     private static const EVENT_FULLSCREEN_EXITED:String  = "fullscreenExited";
 

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

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