Windows desktop applications
Collapse the table of content
Expand the table of content
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.

MediaDevice class

Provides methods used to select devices for capturing and rendering audio, and for capturing video.

Syntax


public ref class MediaDevice abstract sealed 

Members

The MediaDevice class has these types of members:

Events

The MediaDevice class has these events.

EventDescription
DefaultAudioCaptureDeviceChanged Raised when the default audio capture device is changed.
DefaultAudioRenderDeviceChanged Raised when the default audio render device is changed.

 

Methods

The MediaDevice class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetAudioCaptureSelector Returns the identifier string of a device for capturing audio.
GetAudioRenderSelector Returns the identifier string of a device for rendering audio.
GetDefaultAudioCaptureId Returns the identifier string of the default device for capturing audio in the specified role.
GetDefaultAudioRenderId Returns the identifier string of the default device for rendering audio in the specified role.
GetVideoCaptureSelector Returns the identifier string of a device for capturing video.

 

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.Devices
Windows::Media::Devices [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

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

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(MTA)]
[Version(0x06020000)]

See also

Object

 

 

Show:
© 2016 Microsoft