static convertSegment_(
      old, initSegmentKey, appendWindowStart, appendWindowEnd,
      timestampOffset) {
    const V1StorageCell = shaka.offline.indexeddb.V1StorageCell;

    // Since we don't want to use the uri anymore, we need to parse the key
    // from it.
    const dataKey = V1StorageCell.getKeyFromSegmentUri_(old.uri);

    return {
      startTime: appendWindowStart + old.startTime,
      endTime: appendWindowStart + old.endTime,
      dataKey,
      initSegmentKey,
      appendWindowStart,
      appendWindowEnd,
      timestampOffset,
      tilesLayout: '',
      mimeType: null,
      codecs: null,
      thumbnailSprite: null,
    };
  }
@param {shaka.extern.SegmentDBV1} old
@param {?number} initSegmentKey
@param {number} appendWindowStart
@param {number} appendWindowEnd
@param {number} timestampOffset
@return {shaka.extern.SegmentDB}
@private