abort() {
    if (this.videoBuffer_) {
      this.videoBuffer_.abort();
    }
    if (!this.audioDisabled_ && this.audioBuffer_) {
      this.audioBuffer_.abort();
    }
    if (this.transmuxer_) {
      this.transmuxer_.postMessage({action: 'reset'});
    }
    this.pendingBuffers_.length = 0;
    this.bufferUpdating_ = false;
  }
/**
   * Emulate the native mediasource function. abort any soureBuffer
   * actions and throw out any un-appended data.
   *
   * @link https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort
   */
Emulate the native mediasource function. abort any soureBuffer
actions and throw out any un-appended data.


Emulate the native mediasource function . abort any soureBuffer actions and throw out any un - appended data .
abort() {
    if (this.videoBuffer_) {
      this.videoBuffer_.abort();
    }
    if (!this.audioDisabled_ && this.audioBuffer_) {
      this.audioBuffer_.abort();
    }
    if (this.transmuxer_) {
      this.transmuxer_.postMessage({action: 'reset'});
    }
    this.pendingBuffers_.length = 0;
    this.bufferUpdating_ = false;
  }
abort ( ) { if ( this . videoBuffer_ ) { this . videoBuffer_ . abort ( ) ; } if ( ! this . audioDisabled_ && this . audioBuffer_ ) { this . audioBuffer_ . abort ( ) ; } if ( this . transmuxer_ ) { this . transmuxer_ . postMessage ( { action : 'reset' } ) ; } this . pendingBuffers_ . length = 0 ; this . bufferUpdating_ = false ; }
Emulate the native mediasource function.
Emulate the native mediasource function .