Jaa


MediaCaptureDeviceExclusiveControlReleaseMode Enum

Definition

Specifies the condition under which exclusive access to the camera is released.

public enum class MediaCaptureDeviceExclusiveControlReleaseMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
enum class MediaCaptureDeviceExclusiveControlReleaseMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
public enum MediaCaptureDeviceExclusiveControlReleaseMode
var value = Windows.Media.Capture.MediaCaptureDeviceExclusiveControlReleaseMode.onDispose
Public Enum MediaCaptureDeviceExclusiveControlReleaseMode
Inheritance
MediaCaptureDeviceExclusiveControlReleaseMode
Attributes

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)

Fields

Name Value Description
OnDispose 0

Exclusive control is released when the associated camera object is disposed.

OnAllStreamsStopped 1

Exclusive control is released when all streams from the associated camera are stopped.

Remarks

Obtain exclusive access to a camera by calling TryAcquireExclusiveControl.

Applies to