Contents

init(mediaType:segmentConfigurations:assemblyTrackID:)

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

Returns an instance of AVAssetTrackPlan

This initializer throws NSInvalidArgumentException if trackID is kCMPersistentTrackID_Invalid.