Export (0) Print
Expand All

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)

'Declaration
Public Shared Function GetDefaultAudioCaptureDevice As AudioCaptureDevice

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.

Community Additions

ADD
Show:
© 2015 Microsoft