From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../api/htmlmediaelement/controlslist/index.html | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 files/zh-cn/web/api/htmlmediaelement/controlslist/index.html (limited to 'files/zh-cn/web/api/htmlmediaelement/controlslist/index.html') diff --git a/files/zh-cn/web/api/htmlmediaelement/controlslist/index.html b/files/zh-cn/web/api/htmlmediaelement/controlslist/index.html new file mode 100644 index 0000000000..23119dc5ab --- /dev/null +++ b/files/zh-cn/web/api/htmlmediaelement/controlslist/index.html @@ -0,0 +1,48 @@ +--- +title: HTMLMediaElement.controlsList +slug: Web/API/HTMLMediaElement/controlsList +translation_of: Web/API/HTMLMediaElement/controlsList +--- +

{{SeeCompatTable}}{{APIRef("HTML DOM")}}

+ +

HTMLMediaElement接口controlsList 属性返回DOMTokenList,帮助用户在显示其自己的控件集时选择要在媒体元素上显示的控件。DOMTokenList可以设置以下三个可能值中的一个或多个:nodownload,nofullscreen和noremoteplayback(值是一组无序的空格分隔标记,这些标记ASCII不区分大小写的)。

+ +
    +
  1. nodownload关键字暗示的下载控制应使用用户代理自己的一套媒体元素控件时被隐藏。
  2. +
  3. nofullscreen关键字暗示在使用用户代理自己的媒体元素控件集时,应隐藏全屏模式控件。
  4. +
  5. noremoteplayback关键字暗示当使用用户代理自己的媒体元素控件集时,应隐藏远程播放控件。
  6. +
+ +

语法

+ +
var domTokenList = HTMLMediaElement.controlsList;
+ +

Value

+ +

A {{domxref("DOMTokenList")}}.

+ +

示例

+ +
<video controls controlslist="nodownload" id="video" src=""></video>
+
+ +
<video controls controlslist="nodownload nofullscreen noremoteplayback" id="video" src=""></video>
+
+ +

规格

+ +

https://wicg.github.io/controls-list/html-output/multipage/embedded-content.html#attr-media-controlslist.

+ +

浏览器兼容性

+ +
+ + +

{{Compat("api.HTMLMediaElement.controlsList")}}

+
+ +

参阅

+ + -- cgit v1.2.3-54-g00ecf