Type Method

videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:

Adds a Core Animation layer to the video composition.

Declaration

+ (instancetype)videoCompositionCoreAnimationToolWithAdditionalLayer:(CALayer *)layer asTrackID:(CMPersistentTrackID)trackID;

Parameters

layer

The Core Animation layer to add.

trackID

A track ID to identify the track.

trackID should not match any real trackID in the source.

Return Value

A new Core Animation tool for the layer.

Discussion

You use this method to include a Core Animation layer as an individual track input in video composition.

Video composition instructions should reference trackID where the rendered animation should be included.

See Also

Creating a Composition Tool

videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:

Composes the composited video frame with a Core Animation layer.

videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayers:inLayer:

Composes the composited video frames with the Core Animation layer.