platform/video.videojs/dist/video.es.js
function getRange(fnName, valueIndex, ranges, rangeIndex) {
  rangeCheck(fnName, rangeIndex, ranges.length - 1);
  return ranges[rangeIndex][valueIndex];
}
function getRange(fnName, valueIndex, ranges, rangeIndex) {
  rangeCheck(fnName, rangeIndex, ranges.length - 1);
  return ranges[rangeIndex][valueIndex];
}
Check if any of the time ranges are over the maximum index.

@param {string} fnName
The function name to use for logging

@param {string} valueIndex
The proprety that should be used to get the time. should be 'start' or 'end'

@param {Array} ranges
An array of time ranges

@param {Array} [rangeIndex=0]
The index to start the search at

@return {number}
The time that offset at the specified index.


@depricated rangeIndex must be set to a value, in the future this will throw an error.
@throws {Error} if rangeIndex is more than the length of ranges