Contents

videoComposition(withPropertiesOf:prototypeInstruction:completionHandler:)

Returns a new mutable video composition with the specified asset properties and a prototype video composition instruction.

Declaration

class func videoComposition(withPropertiesOf asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction, completionHandler: @escaping  @Sendable (AVMutableVideoComposition?, (any Error)?) -> Void)
class func videoComposition(withPropertiesOf asset: AVAsset, prototypeInstruction: AVVideoCompositionInstruction) async throws -> AVMutableVideoComposition

Parameters

  • asset:

    The asset for which to create a video composition. Load the asset’s Duration and Tracks properties before invoking this method.

  • prototypeInstruction:

    A video composition instruction to use as a prototype.

  • completionHandler:

    A block the system calls when it finishes creating the new video composition.

See Also

Creating a video composition