static generateSegmentIndex_(
      context, requestSegment, initSegmentReference,
      scaledPresentationTimeOffset) {
    const SegmentBase = shaka.dash.SegmentBase;

    const indexUris = SegmentBase.computeIndexUris_(context);
    const indexRange = SegmentBase.computeIndexRange_(context);
    goog.asserts.assert(indexRange, 'Index range should not be null!');

    return shaka.dash.SegmentBase.generateSegmentIndexFromUris(
        context, requestSegment, initSegmentReference, indexUris,
        indexRange.start, indexRange.end,
        scaledPresentationTimeOffset);
  }
Generate a SegmentIndex from a Context object.

@param {shaka.dash.DashParser.Context} context
@param {shaka.dash.DashParser.RequestSegmentCallback} requestSegment
@param {shaka.media.InitSegmentReference} initSegmentReference
@param {number} scaledPresentationTimeOffset
@return {!Promise<shaka.media.SegmentIndex>}
@private