Windows Dev Center

EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

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

 

 

Mostra:
© 2015 Microsoft