skipTheGap_(scheduledCurrentTime) {
    let buffered = this.tech_.buffered();
    let currentTime = this.tech_.currentTime();
    let nextRange = Ranges.findNextRange(buffered, currentTime);

    this.consecutiveUpdates = 0;
    this.timer_ = null;

    if (nextRange.length === 0 ||
        currentTime !== scheduledCurrentTime) {
      return;
    }

    this.logger_('skipTheGap_:',
                 'currentTime:', currentTime,
                 'scheduled currentTime:', scheduledCurrentTime,
                 'nextRange start:', nextRange.start(0));

    // only seek if we still have not played
    this.tech_.setCurrentTime(nextRange.start(0) + Ranges.TIME_FUDGE_FACTOR);
  }
/**
   * Timer callback. If playback still has not proceeded, then we seek
   * to the start of the next buffered region.
   *
   * @private
   */
Timer callback. If playback still has not proceeded, then we seek
to the start of the next buffered region.

@private
Timer callback . If playback still has not proceeded then we seek to the start of the next buffered region . @private
skipTheGap_(scheduledCurrentTime) {
    let buffered = this.tech_.buffered();
    let currentTime = this.tech_.currentTime();
    let nextRange = Ranges.findNextRange(buffered, currentTime);
    this.consecutiveUpdates = 0;
    this.timer_ = null;
    if (nextRange.length === 0 ||
        currentTime !== scheduledCurrentTime) {
      return;
    }
    this.logger_('skipTheGap_:',
                 'currentTime:', currentTime,
                 'scheduled currentTime:', scheduledCurrentTime,
                 'nextRange start:', nextRange.start(0));
    this.tech_.setCurrentTime(nextRange.start(0) + Ranges.TIME_FUDGE_FACTOR);
  }
skipTheGap_ ( scheduledCurrentTime ) { let buffered = this . tech_ . buffered ( ) ; let currentTime = this . tech_ . currentTime ( ) ; let nextRange = Ranges . findNextRange ( buffered , currentTime ) ; this . consecutiveUpdates = 0 ; this . timer_ = null ; if ( nextRange . length === 0 || currentTime !== scheduledCurrentTime ) { return ; } this . logger_ ( 'skipTheGap_:' , 'currentTime:' , currentTime , 'scheduled currentTime:' , scheduledCurrentTime , 'nextRange start:' , nextRange . start ( 0 ) ) ; this . tech_ . setCurrentTime ( nextRange . start ( 0 ) + Ranges . TIME_FUDGE_FACTOR ) ; }
Timer callback.
Timer callback .
// only seek if we still have not played