Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVVideoCompositionMBS class.

AVVideoCompositionMBS.animationTool as AVVideoCompositionCoreAnimationToolMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
A video composition tool to use with Core Animation in offline rendering. (read-only)

This attribute may be nil.

You set an animation tool if you are using the composition in conjunction with AVAssetExportSession for offline rendering, rather than with AVPlayer.

AVVideoCompositionMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

AVVideoCompositionMBS.copy as AVVideoCompositionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the object.

AVVideoCompositionMBS.frameDuration as CMTimeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The interval for which the video composition should render composed video frames. (read-only)

This property only applies when the composition is enabled.

AVVideoCompositionMBS.instructions as AVVideoCompositionInstructionMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The video composition instructions. (read-only)

The array contains of instances of AVVideoCompositionInstruction.

For the first instruction in the array, timeRange.start must be less than or equal to the earliest time for which playback or other processing will be attempted (typically kCMTimeZero). For subsequent instructions, timeRange.start must be equal to the prior instruction's end time. The end time of the last instruction must be greater than or equal to the latest time for which playback or other processing will be attempted (typically be the duration of the asset with which the instance of AVVideoComposition is associated).

AVVideoCompositionMBS.isValidForAsset(asset as AVAssetMBS, timerange as CMTimeRangeMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Indicates whether the time ranges of the composition's instructions conform to validation requirements.

asset: An AVAsset object, if you wish to validate the time ranges of the instructions against the duration of the asset and the track IDs of the layer instructions against the asset's tracks. Pass nil to skip that validation.
timeRange: A time range.
Only those instructions with time ranges that overlap with this time range will be validated. To validate all instructions that may be used for playback or other processing, regardless of time range, pass CMTimeRangeMake(kCMTimeZero, kCMTimePositiveInfinity).

Returns true if the time ranges of the composition's instructions conform to validation requirements, otherwise false.

This method may call events videoCompositionShouldContinueValidatingAfterFindingInvalidValueForKey, videoCompositionShouldContinueValidatingAfterFindingInvalidTrackIDInInstruction, videoCompositionShouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction or videoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange on AVFoundationMBS class.

In the course of validation, the receiver will invoke its events (if there is one) with reference to any trouble spots in the video composition.

This method raises an exception if the event modifies the receiver's array of instructions or the array of layer instructions of any AVVideoCompositionInstruction object contained therein during validation.

AVVideoCompositionMBS.mutableCopy as AVMutableVideoCompositionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an editable copy of the object.

AVVideoCompositionMBS.renderSize as CGSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The size at which the video composition should render. (read-only)

This property only applies when the composition is enabled.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...