AVVideoCompositionCoreAnimationTool Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AVFoundation.framework |
| Availability | Available in OS X v10.7 and later. |
| Declared in | AVVideoComposition.h |
Overview
You use an AVVideoCompositionCoreAnimationTool object to incorporate Core Animation in a video composition.
Any animations will be interpreted on the video's timeline, not real-time, so you should:
Set animations’
beginTimeproperty to1e-100rather than0(which CoreAnimation replaces withCACurrentMediaTime);Set animations’
removedOnCompletionproperty toNOso they are not automatically removed.
Class Methods
videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:
Add a Core Animation layer to the video composition.
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 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.
Availability
- Available in OS X v10.7 and later.
Declared In
AVVideoComposition.hvideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer:inLayer:
Composes the composited video frames with a Core Animation layer.
Parameters
- videoLayer
A video layer.
- animationLayer
An animation layer.
Return Value
A new animation tool for the composition.
Discussion
Place composited video frames in videoLayer and render animationLayer to produce the final frame.
Availability
- Available in OS X v10.7 and later.
Declared In
AVVideoComposition.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-05-16)