MediaCaptureInitializationSettings.SharingMode MediaCaptureInitializationSettings.SharingMode MediaCaptureInitializationSettings.SharingMode MediaCaptureInitializationSettings.SharingMode MediaCaptureInitializationSettings.SharingMode Property

Definition

Gets or sets an object that specifies the sharing mode for the MediaCapture.

public : MediaCaptureSharingMode SharingMode { get; set; }
MediaCaptureSharingMode SharingMode();

void SharingMode(MediaCaptureSharingMode sharingmode);
public MediaCaptureSharingMode SharingMode { get; set; }
Public ReadWrite Property SharingMode As MediaCaptureSharingMode
var mediaCaptureSharingMode = mediaCaptureInitializationSettings.sharingMode;
mediaCaptureInitializationSettings.sharingMode = mediaCaptureSharingMode;

Property Value

An object that specifies the sharing mode for the MediaCapture.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
backgroundMediaRecording

Remarks

Multiple apps can simultaneously acquire frames from the same MediaFrameSource, but only a single app can acquire exclusive control of and modify the settings for the frame source. Set SharingMode to ExclusiveControl if you need to adjust the configuration of any of the frame sources included the requested SourceGroup. However, this means that the call to InitializeAsync will fail if another app already has exclusive control of one of the frame sources in the group. If you only need to acquire frames without modifying the configuration, set SharingMode to SharedReadOnly.