Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CaptureDeviceConfiguration.GetDefaultAudioCaptureDevice Method

Silverlight

Returns the AudioCaptureDevice object that represent the default audio capture devices on the client system.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public static AudioCaptureDevice GetDefaultAudioCaptureDevice()

Return Value

Type: System.Windows.Media.AudioCaptureDevice
The AudioCaptureDevice object that represent the default audio capture devices on the client system.

On Mac OSX, if an application calls GetDefaultAudioCaptureDevice or GetDefaultVideoCaptureDevice and the default audio and video devices have not previously been set by the user, Silverlight will return the first device found. If a physical device is not connected to this CaptureDevice, an InvalidOperationException will be thrown when Start is called. This expectation should be caught by the application and the user can then be notified to manually set their default devices in the "Webcam/Mic" section of the Configuration Settings dialog.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.