此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
HTMLMediaElement:disableRemotePlayback 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
HTMLMediaElement 接口的disableRemotePlayback 属性用于确定媒体元素是否允许具有远程播放 UI。
In this article
值
一个布尔值,指示媒体元素是否可以具有远程播放 UI。(false 表示“未禁用”,即“已启用”)
示例
js
const obj = document.createElement("audio");obj.disableRemotePlayback = true;规范
| Specification |
|---|
| Remote Playback API> # the-disableremoteplayback-attribute> |