Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

msAudioDeviceType property

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

This property is read/write.

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

 

 

Show: