finishCancelledRequest
TypeScriptfinishCancelledRequest(): voidSwift declarationfunc finishCancelledRequest()class · iOS 7.0+ · SDK 27.1
class AVAsynchronousVideoCompositionRequestfinishCancelledRequest(): voidSwift declarationfunc finishCancelledRequest()finishWithComposedVideoFrame(composedVideoFrame: _CoreVideo_CVBuffer): voidSwift declarationfunc finish(withComposedVideoFrame composedVideoFrame: CVPixelBuffer)finishWith(error: NativeError): voidSwift declarationfunc finish(with error: any Error)static init(): AVAsynchronousVideoCompositionRequestSwift declarationinit()sourceFrame(trackID: number): (_CoreVideo_CVBuffer) | nullSwift declarationfunc sourceFrame(byTrackID trackID: CMPersistentTrackID) -> CVPixelBuffer?sourceSampleBuffer(trackID: number): (_CoreMedia_CMSampleBuffer) | nullSwift declarationfunc sourceSampleBuffer(byTrackID trackID: CMPersistentTrackID) -> CMSampleBuffer?sourceTimedMetadata(trackID: number): (AVTimedMetadataGroup) | nullSwift declarationfunc sourceTimedMetadata(byTrackID trackID: CMPersistentTrackID) -> AVTimedMetadataGroup?get compositionTime(): _CoreMedia_CMTimeSwift declarationvar compositionTime: CMTime { get }get renderContext(): AVVideoCompositionRenderContextSwift declarationvar renderContext: AVVideoCompositionRenderContext { get }get sourceTrackIDs(): Array<_Foundation_NSNumber>Swift declarationvar sourceTrackIDs: [NSNumber] { get }get videoCompositionInstruction(): SDKHandleSwift declarationvar videoCompositionInstruction: any AVVideoCompositionInstructionProtocol { get }sourceReadySampleBuffer(trackID: number): (_CoreMedia_CMReadySampleBuffer<_CoreMedia_CMSampleBuffer_DynamicContent>) | nullSwift declarationfunc sourceReadySampleBuffer(byTrackID trackID: CMPersistentTrackID) -> CMReadySampleBuffer<CMSampleBuffer.DynamicContent>?Returns the source CMReadySampleBuffer for the given track ID. - Parameter trackID: The track ID for the requested source frame. - Returns: the source CMReadySampleBuffer for the given track ID.
get sourceSampleDataTrackIDs(): Array<number>Swift declaration@nonobjc var sourceSampleDataTrackIDs: [CMPersistentTrackID] { get }sourceReadOnlyPixelBuffer(trackID: number): (_CoreVideo_CVReadOnlyPixelBuffer) | nullSwift declarationfunc sourceReadOnlyPixelBuffer(byTrackID trackID: CMPersistentTrackID) -> CVReadOnlyPixelBuffer?Returns the source CVReadOnlyPixelBuffer for the given track ID. If the track contains tagged buffers, a pixel buffer from one of the tagged buffers will be returned. - Parameter trackID: The track ID for the requested source frame. - Returns: the source CVReadOnlyPixelBuffer for the given track ID.
sourceTaggedDynamicBuffers(trackID: number): (Array<_CoreMedia_CMTaggedDynamicBuffer>) | nullSwift declarationfunc sourceTaggedDynamicBuffers(byTrackID trackID: CMPersistentTrackID) -> [CMTaggedDynamicBuffer]?Returns the source tagged dynamic buffers for the given track ID. Returns nil if the video track does not contain tagged buffers, or if the track does not contain video. This function should only be called when supportsSourceTaggedBuffers is YES. - Parameter byTrackID: The track ID for the requested source tagged dynamic buffers. - Returns: the source CMTaggedBuffer array for the given track ID.
finishWithComposedPixelBuffer(readOnlyPixelBuffer: _CoreVideo_CVReadOnlyPixelBuffer): voidSwift declarationfunc finish(withComposedPixelBuffer readOnlyPixelBuffer: CVReadOnlyPixelBuffer)The method that the custom compositor calls when composition succeeds. - Parameter composedPixelBuffer: The video frame to finish with. Call finishWithComposedTaggedBufferGroup: instead if outputBufferDescription is non-nil.
finishWithComposedTaggedBuffers(taggedBuffers: Array<_CoreMedia_CMTaggedDynamicBuffer>): voidSwift declarationfunc finish(withComposedTaggedBuffers taggedBuffers: [CMTaggedDynamicBuffer])The method that the custom compositor calls when composition succeeds. - Parameter taggedBuffers: The tagged buffers containing the composed tagged buffers. The tagged buffers must be compatible with the outputBufferDescription specified in the video composition. The outputBufferDescription must not be nil when calling this function. NOTE: If ``AVVideoComposition/spatialConfigurations`` is not empty, then ``attach(spatialVideoConfiguration:to:)`` must be called with one of the spatial configurations. An exception will be thrown otherwise. Also, all pixel buffers must be associated with the same spatial configuration. An exception will be thrown otherwise.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AVAsynchronousVideoCompositionRequest.attach(_:to:)
The iOS SDK compiler rejected this binding: instance method 'arg' requires that 'CVMutablePixelBuffer' conform to 'Copyable'