clampTime_(time) {
    const start = this.timeline_.getSeekRangeStart();
    if (time < start) {
      return start;
    }

    const end = this.timeline_.getSeekRangeEnd();
    if (time > end) {
      return end;
    }

    return time;
  }
Clamps the given time to the seek range.

@param {number} time The time in seconds.
@return {number} The clamped time in seconds.
@private