One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVAssetVideoTrackPlan

class · iOS 27.0+ · SDK 27.1

class AVAssetVideoTrackPlan

Members (2)

get · iOS 27.0+

videoCodecType

TypeScript
get videoCodecType(): AVVideoCodecType
Swift declaration
var videoCodecType: AVVideoCodecType { get }
init · iOS 27.0+

init

TypeScript
static init(videoCodecType: AVVideoCodecType, encoderSpecification: (Record<string, SDKHandle>) | null, mediaType: AVMediaType, segmentConfigurations: Array<AVPlannedVideoSegmentConfiguration>, assemblyTrackID: number): AVAssetVideoTrackPlan
Swift declaration
convenience init(videoCodecType: AVVideoCodecType, encoderSpecification: [String : any Sendable]? = nil, mediaType: AVMediaType, segmentConfigurations: [AVPlannedVideoSegmentConfiguration], assemblyTrackID: CMPersistentTrackID)

Creates an instance of AVAssetVideoTrackPlan. This initializer throws NSInvalidArgumentException in the following cases: 1. mediaType is not supported. Supported media types are AVMediaTypeVideo and AVMediaTypeAuxiliaryPicture 2. The encoder specified by videoCodecType and encoderSpecification does not support video encoding in segments - Parameters: - videoCodecType: Video codec type of the track. - encoderSpecification: A dictionary describing the characteristics of a video encoder to use. Pass nil to let the system choose an encoder. If the client provides a specification, it should omit the following keys: kVTCompressionPropertyKey_SourceFrameCount, kVTCompressionPropertyKey_MoreFramesBeforeStart, and kVTCompressionPropertyKey_MoreFramesAfterEnd, since such keys will be overwritten by the underlying implementation. - mediaType: Media type of the track. Only AVMediaTypeVideo and AVMediaTypeAuxiliaryPicture are supported. - segmentConfigurations: Segment configurations of the track. - assemblyTrackID: The trackID that identifies this track in the assemblyComposition the planner passes to the completion handler of the incremental writing session.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVAssetVideoTrackPlan.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All AVFoundation types →