init(timeRange:segmentType:marked:requiresLinearPlayback:identifier:)
Initializes a new timeline segment with the specified characteristics.
Declaration
init(timeRange: CMTimeRange, segmentType: AVPlaybackUserInterfaceTimelineSegmentType, marked: Bool, requiresLinearPlayback: Bool, identifier: String?)Parameters
- timeRange:
The time range defining the segment’s position and duration within the timeline.
- segmentType:
The type of content this segment represents.
- marked:
Whether the segment should be visually highlighted in the timeline UI.
- requiresLinearPlayback:
Whether the segment must be played sequentially without seeking or skipping.
- identifier:
External identifier for tracking or analytics purposes.