MediaDevice MediaDevice MediaDevice MediaDevice MediaDevice Class

Definition

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

public : static class MediaDevice
static struct winrt::Windows::Media::Devices::MediaDevice
public static class MediaDevice
Public Static Class MediaDevice
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

GetAudioCaptureSelector() GetAudioCaptureSelector() GetAudioCaptureSelector() GetAudioCaptureSelector() GetAudioCaptureSelector()

Returns the identifier string of a device for capturing audio.

GetAudioRenderSelector() GetAudioRenderSelector() GetAudioRenderSelector() GetAudioRenderSelector() GetAudioRenderSelector()

Returns the identifier string of a device for rendering audio.

GetDefaultAudioCaptureId(AudioDeviceRole) GetDefaultAudioCaptureId(AudioDeviceRole) GetDefaultAudioCaptureId(AudioDeviceRole) GetDefaultAudioCaptureId(AudioDeviceRole) GetDefaultAudioCaptureId(AudioDeviceRole)

Returns the identifier string of the default device for capturing audio in the specified role.

GetDefaultAudioRenderId(AudioDeviceRole) GetDefaultAudioRenderId(AudioDeviceRole) GetDefaultAudioRenderId(AudioDeviceRole) GetDefaultAudioRenderId(AudioDeviceRole) GetDefaultAudioRenderId(AudioDeviceRole)

Returns the identifier string of the default device for rendering audio in the specified role.

GetVideoCaptureSelector() GetVideoCaptureSelector() GetVideoCaptureSelector() GetVideoCaptureSelector() GetVideoCaptureSelector()

Returns the identifier string of a device for capturing video.

Events

DefaultAudioCaptureDeviceChanged DefaultAudioCaptureDeviceChanged DefaultAudioCaptureDeviceChanged DefaultAudioCaptureDeviceChanged DefaultAudioCaptureDeviceChanged

Raised when the default audio capture device is changed.

DefaultAudioRenderDeviceChanged DefaultAudioRenderDeviceChanged DefaultAudioRenderDeviceChanged DefaultAudioRenderDeviceChanged DefaultAudioRenderDeviceChanged

Raised when the default audio render device is changed.