remove(start, end) {
    if (this.videoBuffer_) {
      this.videoBuffer_.updating = true;
      this.videoBuffer_.remove(start, end);
      this.gopBuffer_ = removeGopBuffer(this.gopBuffer_, start, end, this.timeMapping_);
    }
    if (!this.audioDisabled_ && this.audioBuffer_) {
      this.audioBuffer_.updating = true;
      this.audioBuffer_.remove(start, end);
    }

    // Remove Metadata Cues (id3)
    removeCuesFromTrack(start, end, this.metadataTrack_);

    // Remove Any Captions
    if (this.inbandTextTracks_) {
      for (let track in this.inbandTextTracks_) {
        removeCuesFromTrack(start, end, this.inbandTextTracks_[track]);
      }
    }
  }
/**
   * Emulate the native mediasource function and remove parts
   * of the buffer from any of our internal buffers that exist
   *
   * @link https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove
   * @param {Double} start position to start the remove at
   * @param {Double} end position to end the remove at
   */
Emulate the native mediasource function and remove parts
of the buffer from any of our internal buffers that exist


Emulate the native mediasource function and remove parts of the buffer from any of our internal buffers that exist
remove(start, end) {
    if (this.videoBuffer_) {
      this.videoBuffer_.updating = true;
      this.videoBuffer_.remove(start, end);
      this.gopBuffer_ = removeGopBuffer(this.gopBuffer_, start, end, this.timeMapping_);
    }
    if (!this.audioDisabled_ && this.audioBuffer_) {
      this.audioBuffer_.updating = true;
      this.audioBuffer_.remove(start, end);
    }
    removeCuesFromTrack(start, end, this.metadataTrack_);
    if (this.inbandTextTracks_) {
      for (let track in this.inbandTextTracks_) {
        removeCuesFromTrack(start, end, this.inbandTextTracks_[track]);
      }
    }
  }
remove ( start , end ) { if ( this . videoBuffer_ ) { this . videoBuffer_ . updating = true ; this . videoBuffer_ . remove ( start , end ) ; this . gopBuffer_ = removeGopBuffer ( this . gopBuffer_ , start , end , this . timeMapping_ ) ; } if ( ! this . audioDisabled_ && this . audioBuffer_ ) { this . audioBuffer_ . updating = true ; this . audioBuffer_ . remove ( start , end ) ; } removeCuesFromTrack ( start , end , this . metadataTrack_ ) ; if ( this . inbandTextTracks_ ) { for ( let track in this . inbandTextTracks_ ) { removeCuesFromTrack ( start , end , this . inbandTextTracks_ [ track ] ) ; } } }
Emulate the native mediasource function and remove parts
 of the buffer from any of our internal buffers that exist
Emulate the native mediasource function and remove parts of the buffer from any of our internal buffers that exist
// Remove Metadata Cues (id3) // Remove Any Captions