msAudioDeviceType property

Specifies the output device id that the audio will be sent to.

This property is read/write.

Internet Explorer 10

 

Syntax

JavaScript
object.msAudioDeviceType = ptr
ptr = object.msAudioDeviceType

 

Property values

Type: DOMString

Console (0)

Specifies that the audio output will be sent to the console device.

Multimedia (1)

Specifies that the audio output will be sent to the multimedia device.

Communications (2)

Specifies that the audio output will be sent to the communications device.

Remarks

You must set the msAudioDeviceType before setting the src property in code.

Setting the attribute to "Console" specifies that the audio output will be sent to the console device. Setting the attribute to "Multimedia" specifies that the audio output will be sent to the multimedia device. Setting the attribute to "Communications" specifies that the audio output will be sent to the communications device.

See also

HTMLMediaElement

How to select an audio output device