static parseSegment_(segmentElement) {
    const parser = segmentElement.createParser();

    // Find the Info element.
    let infoElement = null;
    while (parser.hasMoreData()) {
      const elem = parser.parseElement();
      if (elem.id != shaka.dash.WebmSegmentIndexParser.INFO_ID) {
        continue;
      }

      infoElement = elem;

      break;
    }

    if (!infoElement) {
      shaka.log.error('Not an Info element.');
      throw new shaka.util.Error(
          shaka.util.Error.Severity.CRITICAL,
          shaka.util.Error.Category.MEDIA,
          shaka.util.Error.Code.WEBM_INFO_ELEMENT_MISSING);
    }

    return shaka.dash.WebmSegmentIndexParser.parseInfo_(infoElement);
  }
Parses a WebM Info element to get the segment's timecode scale and
duration.
@param {!shaka.util.EbmlElement} segmentElement
@return {{timecodeScale: number, duration: number}} The segment's timecode
  scale in seconds and duration in seconds.
@private