init(mediaType:segmentConfigurations:assemblyTrackID:)
Returns an instance of AVAssetTrackPlan
Declaration
init(mediaType: AVMediaType, segmentConfigurations: [AVPlannedSegmentConfiguration], assemblyTrackID trackID: CMPersistentTrackID)Parameters
- mediaType:
Media type of the track
- segmentConfigurations:
Segment configurations of the track
- trackID:
The trackID that identifies this track in the assemblyComposition the planner passes to the completion handler of the incremental writing session.
Discussion
This initializer throws NSInvalidArgumentException if trackID is kCMPersistentTrackID_Invalid.