private void sendClearPing ( ) { Ping eof = new Ping ( ) ; eof . setEventType ( Ping . STREAM_PLAYBUFFER_CLEAR ) ; eof . setValue2 ( streamId ) ; // eos RTMPMessage eofMsg = RTMPMessage . build ( eof ) ; doPushMessage ( eofMsg ) ; }
Send clear ping . Lets client know that stream has no more data to send .