Instance Property

isVideoHDREnabled

A Boolean value that indicates whether the receiver is allowed to turn high dynamic range streaming on or off.

Declaration

var isVideoHDREnabled: Bool { get set }

Discussion

The default value is true. By default, AVCaptureDevice always sets isVideoHDREnabled to false when a client sets a new format using the activeFormat property.

When the client uses the AVCaptureSession property sessionPreset instead, AVCaptureDevice turns video HDR on automatically if it's a good fit for the preset. An genericException exception is thrown if this property is set without first obtaining exclusive access to the receiver using lockForConfiguration(). Clients can use Key-value observing of the isVideoHDREnabled property to know when the receiver has automatically changed the value.

See Also

Managing High Dynamic Range Video

var automaticallyAdjustsVideoHDREnabled: Bool

A Boolean value that indicates whether the capture device is allowed to turn high dynamic range streaming on or off.