Initializes the MediaCapture object, using default settings.
Syntax
mediaCapture.initializeAsync().done( /* Your success and error handlers */ );
Parameters
This method has no parameters.
Return value
Type: IAsyncAction
Returns a IAsyncAction object that is used to control the asynchronous operation.
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++ in Windows 8, 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 |
|
Namespace |
|
|
Metadata |
|
|
Capabilities |
|
See also
- MediaCapture
- InitializeAsync(MediaCaptureInitializationSettings)
- Guidelines for enabling sensitive devices
Build date: 12/4/2012