finish(withComposedTaggedBuffers:)
The method that the custom compositor calls when composition succeeds.
Declaration
func finish(withComposedTaggedBuffers taggedBuffers: [CMTaggedDynamicBuffer])Parameters
- 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/spatialConfigurationsis not empty, thenattach(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.