Contents

init(propertiesOf:)

Creates a mutable video composition with the specified asset properties.

Declaration

init(propertiesOf asset: AVAsset)

Parameters

  • asset:

    An instance of Avasset. Ensure that the duration and tracks properties of the asset are already loaded before invoking this method.

Discussion

The returned AVMutableVideoComposition has instructions that respect the spatial properties and time ranges of the specified asset’s video tracks.

It also has the following values for its properties:

See Also

Creating a video composition