Instance Property

customVideoCompositor

The custom video compositor instance used, if any.

Declaration

var customVideoCompositor: AVVideoCompositing? { get }

Discussion

The custom video compositor instance that is used during image generation is accessible via this property after the value of videoComposition is set to an AVVideoComposition instance that specifies a custom video compositor class. Any additional communication between the application and that instance of the custom video compositor, if any is required for configuration or other purposes, can only occur once that has happened.

If the value of videoComposition is changed from an AVVideoComposition that specifies a custom video compositor class to another instance of AVVideoComposition that specifies the same custom video compositor class, the instance of the custom video compositor that was previously created will receive the renderContextChanged(_:) message and remain in use for subsequent image generation.

This property is nil if there is no video compositor, or if the internal video compositor is in use.

See Also

Configuring Output

var outputURL: URL?

The URL of the export session’s output.

var supportedFileTypes: [AVFileType]

An array containing the types of files the session can write.

var outputFileType: AVFileType?

The type of file written by the session.

var fileLengthLimit: Int64

The file length that the output of the session should not exceed.

var timeRange: CMTimeRange

The time range exported from the source.

var metadata: [AVMetadataItem]?

The metadata written to the output file by the export session.

var metadataItemFilter: AVMetadataItemFilter?

Specifies a filter object used during export to determine which metadata items to transfer from the source asset.

var audioMix: AVAudioMix?

The parameters for audio mixing and an indication whether to enable nondefault audio mixing for export.

var audioTimePitchAlgorithm: AVAudioTimePitchAlgorithm

A processing algorithm used to manage audio pitch for scaled audio edits.

var shouldOptimizeForNetworkUse: Bool

A Boolean value that indicates whether to optimize the movie should for network use.

var videoComposition: AVVideoComposition?

The instructions for video composition, and indicates whether video composition is enabled for export.

var canPerformMultiplePassesOverSourceMediaData: Bool

A Boolean value that indicates whether the export session can perform multiple passes over the source media to achieve better results.

var directoryForTemporaryFiles: URL?

A directory that is suitable for containing temporary files generated during the export process.