forEachTopLevelReference(fn) {
    for (const reference of this.references) {
      fn(reference);
    }
  }
Iterates over all top-level segment references in this segment index.
@param {function(!shaka.media.SegmentReference)} fn