Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 2.25 KB

mediacaptureinitializationsettings.md

File metadata and controls

47 lines (31 loc) · 2.25 KB
-api-id -api-type
T:Windows.Media.Capture.MediaCaptureInitializationSettings
winrt class

Windows.Media.Capture.MediaCaptureInitializationSettings

-description

Contains initialization settings for the MediaCapture object which are passed to the MediaCapture.InitializeAsync method.

-remarks

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.

Version history

Windows version SDK version Value added
1607 14393 MemoryPreference
1607 14393 SharingMode
1607 14393 SourceGroup
1703 15063 AlwaysPlaySystemShutterSound
2004 19041 DeviceUri
2004 19041 DeviceUriPasswordCredential

-examples

The following example initializes the MediaCaptureInitializationSettings. Call InitializeAsync with these settings to initialize a MediaCapture object.

[!code-csharpMediaCaptureVideo_InitSettings]

-see-also

Camera profiles sample, Video stabilization sample

-capabilities

backgroundMediaRecording microphone, webcam