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

View in English Always switch to English

HTMLMediaElement:controller 属性

Deprecated

Avoid using this feature in new projects. The MediaController API was dropped from the specification due to lack of implementations. This feature may be a candidate for removal from web standards or browsers.

非标准: 该特性尚未标准化。我们不建议在生产环境中使用非标准特性,因为它们在浏览器中的支持有限,且可能发生变化或被移除。不过,在没有标准选项的特定情况下,它们可以作为合适的替代方案。

HTMLMediaElement.controller 属性表示分配给该元素的媒体控制器。

MediaController 对象,如果没有分配媒体控制器给该元素,则为 null。默认值为 null

规范

在 2016 年,整个媒体控制器特性从 HTML 规范中移除。其不再被标准化轨道跟踪。

浏览器兼容性