Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

CaptureDeviceConfiguration Class

Silverlight

Represents a helper class for obtaining information about available capture devices (audio or video) and requesting client user permission to access the captures from available devices.

System.Object
  System.Windows.Media.CaptureDeviceConfiguration

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public static class CaptureDeviceConfiguration

The CaptureDeviceConfiguration type exposes the following members.

  NameDescription
Public propertyStatic memberSupported by Silverlight for Windows PhoneAllowedDeviceAccessGets a value that reports whether a user has previously granted device access based on their stored response to the device access UI prompt.
Top
  NameDescription
Public methodStatic memberSupported by Silverlight for Windows PhoneGetAvailableAudioCaptureDevicesReturns a collection of AudioCaptureDevice objects that represent the available audio capture devices on the client system.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetAvailableVideoCaptureDevicesReturns a collection of VideoCaptureDevice objects that represent the available video capture devices on the client system.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetDefaultAudioCaptureDeviceReturns the AudioCaptureDevice object that represent the default audio capture devices on the client system.
Public methodStatic memberSupported by Silverlight for Windows PhoneGetDefaultVideoCaptureDeviceReturns the VideoCaptureDevice object that represent the default video capture devices on the client system.
Public methodStatic memberSupported by Silverlight for Windows PhoneRequestDeviceAccessRequests access for all possible capture devices (audio or video) that are available on the client system.
Top

Client user permission to access the captures from available devices is scoped by sites in domains, and must be enabled per session.

If multiple devices are available, the user can select the device to use as part of the Silverlight configuration dialog (Webcam/Mic tab). In configuration UI, audio devices and video devices are listed separately and each can have a default. If a device is unavailable in the configuration UI, no CaptureDevice instance represents it.

On some systems, audio devices are not reported unless a microphone is plugged in and enabled; the presence of a sound card but no plugged-in microphone for it does not appear as an audio capture device in the list.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.