Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaCaptureInitializationSettings class

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

Syntax


public ref class MediaCaptureInitializationSettings sealed 

Members

The MediaCaptureInitializationSettings class has these types of members:

Constructors

The MediaCaptureInitializationSettings class has these constructors.

ConstructorDescription
MediaCaptureInitializationSettings Creates a new instance of the MediaCaptureInitializationSettings object.

 

Methods

The MediaCaptureInitializationSettings class inherits methods from the Object class (C#/VB/C++).

Properties

The MediaCaptureInitializationSettings class has these properties.

PropertyAccess typeDescription

AudioDeviceId

Read/write

Gets the DeviceInformation.Id of the microphone.

AudioProcessing

Read/write

Gets or sets a value that specifies the audio processing mode.

MediaCategory

Read/write

Gets or set the media category.

PhotoCaptureSource

Read/write

Gets or sets the stream that is used for photo capture.

StreamingCaptureMode

Read/write

Gets or sets the streaming mode.

VideoDeviceId

Read/write

Gets the DeviceInformation.Id of the video camera.

 

Examples

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


// Initialize the MediaCaptureInitialzationSettings.
function initCaptureSettings() {
    captureInitSettings = null;
    captureInitSettings = new Windows.Media.Capture.MediaCaptureInitializationSettings();
    captureInitSettings.audioDeviceId = "";
    captureInitSettings.videoDeviceId = "";
    captureInitSettings.streamingCaptureMode = Windows.Media.Capture.StreamingCaptureMode.audioAndVideo;
    captureInitSettings.photoCaptureSource = Windows.Media.Capture.PhotoCaptureSource.photo;
    if (deviceList.length > 0)
        captureInitSettings.videoDeviceId = deviceList[0].id;
}



Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

webcam
microphone

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

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

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

See also

Object

 

 

Show: