Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MediaPlayer.AudioDevice Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Requirements Description
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


Feedback

Was this page helpful?