Instance Method

renderContextChanged(_:)

Notifies the custom compositor that a composition will switch to a different render context.

Required.

Declaration

func renderContextChanged(_ newRenderContext: AVVideoCompositionRenderContext)

Parameters

newRenderContext

The new render context that will be handling video composition.

Discussion

Instances of classes implementing the AVVideoComposting protocol must implement this method to be notified when the AVVideoCompositionRenderContext instance handing a video composition changes. AVVideoCompositionRenderContext instances being immutable, such a change will occur every time there is a change in the video composition parameters.

See Also

Render Context Settings

var supportsWideColorSourceFrames: Bool

A Boolean value that indicates whether the client can handle frames that contain wide color properties.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software