function makePresentationTimeline(
      isStatic,
      duration,
      presentationStartTime,
      segmentAvailabilityDuration,
      maxSegmentDuration,
      clockOffset,
      presentationDelay,
      autoCorrectDrift = true) {
    const timeline = new shaka.media.PresentationTimeline(
        presentationStartTime, presentationDelay, autoCorrectDrift);
    timeline.setStatic(isStatic);
    timeline.setDuration(duration || Infinity);
    timeline.setSegmentAvailabilityDuration(segmentAvailabilityDuration);
    timeline.notifyMaxSegmentDuration(maxSegmentDuration);
    timeline.setClockOffset(clockOffset);
    timeline.assertIsValid();
    return timeline;
  }
Creates a PresentationTimeline.

@param {boolean} isStatic
@param {number} duration
@param {?number} presentationStartTime
@param {number} segmentAvailabilityDuration
@param {number} maxSegmentDuration
@param {number} clockOffset
@param {number} presentationDelay
@param {boolean=} autoCorrectDrift

@return {shaka.media.PresentationTimeline}