Jaa


MediaPlayer.AudioDevice Property

Definition

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

public:
 property DeviceInformation ^ AudioDevice { DeviceInformation ^ get(); void set(DeviceInformation ^ value); };
DeviceInformation AudioDevice();

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

Property Value

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

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

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

Applies to