requiresFlushToResumeDecoding
A Boolean value that indicates whether the layer needs to flush its state to continue decoding frames.
Declaration
var requiresFlushToResumeDecoding: Bool { get }Discussion
Apple discourages the use of this symbol in iOS 17, tvOS 17, and macOS 14 and later. Use requiresFlushToResumeDecoding on the sampleBufferRenderer instead.
When an app enters a state where use of video decoder resources isn’t permissible, the value of this property changes to true and the display layer’s status changes to a AVQueuedSampleBufferRenderingStatus.failed state.
To resume rendering sample buffers using the display layer after this property’s value is true, apps must first reset the display layer’s status to AVQueuedSampleBufferRenderingStatus.unknown, which you do by calling the layer’s flush() method.
This property isn’t key-value observable. Instead, observe changes to this property value by observing notifications of type AVSampleBufferDisplayLayerRequiresFlushToResumeDecodingDidChangeNotification.