systemPressureState
A value that indicates the capture device’s current system pressure state.
Declaration
var systemPressureState: AVCaptureDevice.SystemPressureState { get }Discussion
This property indicates whether the capture device is currently in an elevated system pressure condition. When system pressure reaches a shutdown state, the capture device can’t continue to provide input, and the capture session becomes interrupted until the pressured state abates.
You can effectively mitigate system pressure by lowering the device’s activeVideoMinFrameDuration in response to changes in the system pressure state. Implement frame rate throttling to bring system pressure down if your capture use case can tolerate a reduced frame rate.