InitializeAsync | initializeAsync methods
TOC
Collapse the table of content
Expand the table of content

MediaCapture.InitializeAsync | initializeAsync methods

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

Initializes the MediaCapture object.

Overload list

MethodDescription
InitializeAsync() Initializes the MediaCapture object, using default settings.
InitializeAsync(MediaCaptureInitializationSettings) Initializes the MediaCapture object.

Remarks

InitializeAsync will launch a consent prompt to get the user's permission for the app to access the microphone or camera. InitializeAsync should be called from the main UI thread of your app. For more information, see Guidelines for enabling sensitive devices.

In apps that use C# or C++, the first use of the MediaCapture object to call InitializeAsync should be on the STA thread. Calls from an MTA thread may result in undefined behavior.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.winmd

Capabilities

webcam
microphone

See also

MediaCapture
Guidelines for enabling sensitive devices

 

 

Show:
© 2016 Microsoft