     }
 
     private function sendPlayReq():void {
+      if (state === STATE_PAUSED) {
+        /* NetStream was closed when pausing. Play it again if that is the case. */
+        Player.getNetStream().play(null);
+      }
+
       var req:String =
         "PLAY " + contentBase + " RTSP/1.0\r\n" +
         "CSeq: " + (++cSeq) + "\r\n" +

    }

    private function sendPauseReq():void {
      var req:String =
        "PAUSE " + contentBase + " RTSP/1.0\r\n" +
        "CSeq: " + (++cSeq) + "\r\n" +

        trace('Unable to stop if we never reached play.');
        return false;
      }
      sendTeardownReq();
      state = STATE_TEARDOWN_SENT;
      return true;
    }

