static generateSegmentIndexFromIndexTemplate_(
      context, requestSegment, init, info) {
    const MpdUtils = shaka.dash.MpdUtils;
    const ManifestParserUtils = shaka.util.ManifestParserUtils;

    goog.asserts.assert(info.indexTemplate, 'must be using index template');
    const filledTemplate = MpdUtils.fillUriTemplate(
        info.indexTemplate, context.representation.originalId,
        null, null, context.bandwidth || null, null);

    const resolvedUris = ManifestParserUtils.resolveUris(
        context.representation.getBaseUris(), [filledTemplate]);

    return shaka.dash.SegmentBase.generateSegmentIndexFromUris(
        context, requestSegment, init, resolvedUris, 0, null,
        info.scaledPresentationTimeOffset);
  }
Generates a SegmentIndex from an index URL template.

@param {shaka.dash.DashParser.Context} context
@param {shaka.dash.DashParser.RequestSegmentCallback} requestSegment
@param {shaka.media.InitSegmentReference} init
@param {shaka.dash.SegmentTemplate.SegmentTemplateInfo} info
@return {!Promise<shaka.media.SegmentIndex>}
@private