非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
msAudioDeviceType
特性在 HTML
<audio>
element, is a read/write proprietary attribute, specific to Internet Explorer and Microsoft Edge.
msAudioDeviceType
specifies the output device id that the audio will be sent to.
<audio src="sound.mp3" msAudioDeviceType="Communications" />
By default, audio on your system will output to your default speakers and be considered a foreground element, meaning that the audio will play only when the element is active in the app. For real-time communications, you can use the
msAudioDeviceType
property with the value
控制台
,
多媒体
,或
Communications
to specify where the current audio should output.
Include a description of the property's value, including data type and what it represents.
| 值 | 描述 |
|---|---|
| 控制台 | Specifies that the audio output will be sent to the console device. |
| 多媒体 | Specifies that the audio output will be sent to the multimedia device. |
| Communications | Specifies that the audio output will be sent to the communications device. |