code: private void sendReset() {
          if (pullMode) {
              Ping recorded = new Ping();
              recorded.setEventType(Ping.RECORDED_STREAM);
              recorded.setValue2(streamId);
              // recorded 
              RTMPMessage recordedMsg = RTMPMessage.build(recorded);
              doPushMessage(recordedMsg);
          }
          Ping begin = new Ping();
          begin.setEventType(Ping.STREAM_BEGIN);
          begin.setValue2(streamId);
          // begin 
          RTMPMessage beginMsg = RTMPMessage.build(begin);
          doPushMessage(beginMsg);
          // reset
          ResetMessage reset = new ResetMessage();
          doPushMessage(reset);
      }
docs: Send reset message