Edit

Share via


AVCaptureDevice.VideoHdrEnabled Property

Definition

Indicates if the device is currently streaming HDR video.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool VideoHdrEnabled { [Foundation.Export("isVideoHDREnabled")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setVideoHDREnabled:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.VideoHdrEnabled : bool with get, set

Property Value

Attributes

Remarks

Setting this property requires the P:AVFoundation.AVCaptureDevice.ActiveFormat’s IsVideoHdrSupported to be true, otherwise you will get an exception.

Setting the ActiveFormat property will change this to false.

This property can only be set if you first set AutomaticallyAdjustsVideoHdrEnabled to false.

In constrat, setting the SessionPreset will set this property to true if the session preset is a good match for HDR video.

Applies to