static getAllSegmentIds_(manifest) {
    /** @type {!Set<number>} */
    const ids = new Set();

    // Get every segment for every stream in the manifest.
    for (const stream of manifest.streams) {
      for (const segment of stream.segments) {
        if (segment.initSegmentKey != null) {
          ids.add(segment.initSegmentKey);
        }

        ids.add(segment.dataKey);
      }
    }

    return Array.from(ids);
  }
@param {shaka.extern.ManifestDB} manifest
@return {!Array<number>}
@private