MediaDevice class

Applies to Windows and Windows Phone

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

Syntax


var mediaDevice = Windows.Media.Devices.MediaDevice;

Attributes

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

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

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

 

 

Show:
© 2014 Microsoft. All rights reserved.