init
TypeScriptstatic initAssetTrack(assetTrack: AVAssetTrack): AVVideoCompositionLayerInstruction_ConfigurationSwift declarationinit(assetTrack: AVAssetTrack)Creates a new video composition layer instruction for the given track.
struct · iOS 26.0+ · SDK 27.1
struct ConfigurationConfigurable properties for initializing a new AVVideoCompositionLayerInstruction instance.
static initAssetTrack(assetTrack: AVAssetTrack): AVVideoCompositionLayerInstruction_ConfigurationSwift declarationinit(assetTrack: AVAssetTrack)Creates a new video composition layer instruction for the given track.
setOpacity(opacity: number, time: _CoreMedia_CMTime): voidSwift declarationmutating func setOpacity(_ opacity: Float, at time: CMTime)Sets the opacity value at a specific time within the time range of the instruction.
opacityRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_OpacityRamp) | nullSwift declarationfunc opacityRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.OpacityRamp?Obtains the opacity ramp that includes a specified time.
setTransform(transform: _CoreFoundation_CGAffineTransform, time: _CoreMedia_CMTime): voidSwift declarationmutating func setTransform(_ transform: CGAffineTransform, at time: CMTime)Sets the transform value at a time within the time range of the instruction.
transformRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_TransformRamp) | nullSwift declarationfunc transformRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.TransformRamp?Obtains the transform ramp that includes a specified time.
addOpacityRamp(ramp: AVVideoCompositionLayerInstruction_OpacityRamp): voidSwift declarationmutating func addOpacityRamp(_ ramp: AVVideoCompositionLayerInstruction.OpacityRamp)Sets an opacity ramp to apply during a specified time range.
addTransformRamp(ramp: AVVideoCompositionLayerInstruction_TransformRamp): voidSwift declarationmutating func addTransformRamp(_ ramp: AVVideoCompositionLayerInstruction.TransformRamp)Sets a transform ramp to apply during a given time range.
setCropRectangle(rect: { x: number; y: number; width: number; height: number }, time: _CoreMedia_CMTime): voidSwift declarationmutating func setCropRectangle(_ rect: CGRect, at time: CMTime)Sets the crop rectangle value at a time within the time range of the instruction.
cropRectangleRamp(time: _CoreMedia_CMTime): (AVVideoCompositionLayerInstruction_CropRectangleRamp) | nullSwift declarationfunc cropRectangleRamp(at time: CMTime) -> AVVideoCompositionLayerInstruction.CropRectangleRamp?Obtains the crop rectangle ramp that includes the specified time.
addCropRectangleRamp(ramp: AVVideoCompositionLayerInstruction_CropRectangleRamp): voidSwift declarationmutating func addCropRectangleRamp(_ ramp: AVVideoCompositionLayerInstruction.CropRectangleRamp)Sets a crop rectangle ramp to apply during the specified time range.
static initTrackID(trackID?: number): AVVideoCompositionLayerInstruction_ConfigurationSwift declarationinit(trackID: CMPersistentTrackID = .zero)Creates a new video composition layer instruction for the given track ID.
get trackID(): numberSwift declarationvar trackID: CMPersistentTrackID { get set }The track identifier of the source track to which the compositor will apply the instruction.
set trackID(value: number)Swift declarationvar trackID: CMPersistentTrackID { get set }The track identifier of the source track to which the compositor will apply the instruction.
No declarations were skipped in this snapshot.