hasContentFor_(buffered, timeInSeconds) {
    const TimeRangesUtils = shaka.media.TimeRangesUtils;
    for (const {start, end} of TimeRangesUtils.getBufferedInfo(buffered)) {
      // Can be as much as 100ms before the range
      if (timeInSeconds < start - 0.1) {
        continue;
      }
      // Must be at least 500ms inside the range
      if (timeInSeconds > end - 0.5) {
        continue;
      }

      return true;
    }

    return false;
  }
Check if we have buffered enough content to play at |timeInSeconds|. Ignore
the end of the buffered range since it may not play any more on all
platforms.

@param {!TimeRanges} buffered
@param {number} timeInSeconds
@return {boolean}
@private