此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

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。

一个布尔值,指示媒体元素是否可以具有远程播放 UI。(false 表示“未禁用”,即“已启用”)

示例

js
const obj = document.createElement("audio");
obj.disableRemotePlayback = true;

规范

Specification
Remote Playback API
# the-disableremoteplayback-attribute

浏览器兼容性

参见