MediaPlayer.AudioDevice MediaPlayer.AudioDevice MediaPlayer.AudioDevice MediaPlayer.AudioDevice MediaPlayer.AudioDevice Property

Definition

Gets or sets the DeviceInformation object representing audio device used by the MediaPlayer to render audio.

public : DeviceInformation AudioDevice { get; set; }
DeviceInformation AudioDevice();

void AudioDevice(DeviceInformation audiodevice);
public DeviceInformation AudioDevice { get; set; }
Public ReadWrite Property AudioDevice As DeviceInformation
var deviceInformation = mediaPlayer.audioDevice;
mediaPlayer.audioDevice = deviceInformation;

Property Value

The DeviceInformation object representing audio device used by the MediaPlayer to render audio.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

To enumerate the currently available audio devices, call DeviceInformation.FindAllAsync, passing in the device selector string returned from MediaDevice.GetAudioRenderSelector.