done_(event) {
    // Don't process and append data if the mediaSource is closed
    if (this.mediaSource_.readyState === 'closed') {
      this.pendingBuffers_.length = 0;
      return;
    }

    // All buffers should have been flushed from the muxer
    // start processing anything we have received
    this.processPendingSegments_();
    return;
  }
/**
   * When we get a done event from the transmuxer
   * we call this function and we process all
   * of the pending data that we have been saving in the
   * data_ function
   *
   * @private
   * @param {Event} event the done event from the transmuxer
   */
When we get a done event from the transmuxer
we call this function and we process all
of the pending data that we have been saving in the
data_ function

@private
@param {Event} event the done event from the transmuxer
When we get a done event from the transmuxer we call this function and we process all of the pending data that we have been saving in the data_ function @private @param { Event } event the done event from the transmuxer
done_(event) {
    if (this.mediaSource_.readyState === 'closed') {
      this.pendingBuffers_.length = 0;
      return;
    }
    this.processPendingSegments_();
    return;
  }
done_ ( event ) { if ( this . mediaSource_ . readyState === 'closed' ) { this . pendingBuffers_ . length = 0 ; return ; } this . processPendingSegments_ ( ) ; return ; }
When we get a done event from the transmuxer
 we call this function and we process all
 of the pending data that we have been saving in the
 data_ function
When we get a done event from the transmuxer we call this function and we process all of the pending data that we have been saving in the data_ function
// Don't process and append data if the mediaSource is closed // All buffers should have been flushed from the muxer // start processing anything we have received