Contents

init(url:trackID:sourceTimeRange:targetTimeRange:)

Creates an object that presents a segment of a media file that the specified URL references.

Declaration

init(url URL: URL, trackID: CMPersistentTrackID, sourceTimeRange: CMTimeRange, targetTimeRange: CMTimeRange)

Parameters

  • URL:

    A URL of the source media file.

  • trackID:

    The identifier of the track whose media this segment presents.

  • sourceTimeRange:

    The time range of the track whose media this segment presents.

  • targetTimeRange:

    The time range of the composition track to present the segment’s media.

See Also

Creating a segment