-api-id | -api-type |
---|---|
T:Windows.Media.Capture.MediaCaptureInitializationSettings |
winrt class |
Contains initialization settings for the MediaCapture object which are passed to the MediaCapture.InitializeAsync method.
For how-to guidance on initializing and shutting down the MediaCapture object, see Basic photo, video, and audio capture with MediaCapture.
Note
When MediaCaptureSharingMode::SharedReadOnly is used, some of the MediaCaptureInitializationSettings properties can't be configured. See SharingMode for details.
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | MemoryPreference |
1607 | 14393 | SharingMode |
1607 | 14393 | SourceGroup |
1703 | 15063 | AlwaysPlaySystemShutterSound |
2004 | 19041 | DeviceUri |
2004 | 19041 | DeviceUriPasswordCredential |
The following example initializes the MediaCaptureInitializationSettings. Call InitializeAsync with these settings to initialize a MediaCapture object.
[!code-csharpMediaCaptureVideo_InitSettings]
Camera profiles sample, Video stabilization sample
backgroundMediaRecording microphone, webcam