src/source-updater.js
/**
   * Queue an update to remove a time range from the buffer.
   *
   * @param {Number} start where to start the removal
   * @param {Number} end where to end the removal
   * @param {Function} [done=noop] optional callback to be executed when the remove
   * operation is complete
   * @see http://www.w3.org/TR/media-source/#widl-SourceBuffer-remove-void-double-start-unrestricted-double-end
   */
Queue an update to remove a time range from the buffer.
Queue an update to remove a time range from the buffer .
remove(start, end, done = noop) {
    if (this.processedAppend_) {
      this.queueCallback_(() => {
        this.logger_(`remove [${start} => ${end}]`);
        this.sourceBuffer_.removing = true;
        this.sourceBuffer_.remove(start, end);
      }, done);
    }
  }
remove ( start , end , done = noop ) { if ( this . processedAppend_ ) { this . queueCallback_ ( ( ) => { this . logger_ ( ` ${ start } ${ end } ` ) ; this . sourceBuffer_ . removing = true ; this . sourceBuffer_ . remove ( start , end ) ; } , done ) ; } }
Queue an update to remove a time range from the buffer.
Queue an update to remove a time range from the buffer .