From 9a110dee28ae2ef12ee014b98fda6bae6ee48edb Mon Sep 17 00:00:00 2001 From: YujiSoftware Date: Wed, 2 Mar 2022 20:22:51 +0900 Subject: Migrate to Compat macro (zh-cn) --- .../api/htmlmediaelement/audiotracks/index.html | 50 +----------------- .../web/api/htmlmediaelement/autoplay/index.html | 50 +----------------- .../web/api/htmlmediaelement/buffered/index.html | 50 +----------------- .../web/api/htmlmediaelement/controls/index.html | 50 +----------------- .../api/htmlmediaelement/currenttime/index.html | 54 +------------------- .../zh-cn/web/api/htmlmediaelement/loop/index.html | 54 +------------------- .../api/htmlmediaelement/networkstate/index.html | 56 +------------------- .../web/api/htmlmediaelement/paused/index.html | 50 +----------------- .../web/api/htmlmediaelement/readystate/index.html | 52 +------------------ .../web/api/htmlmediaelement/srcobject/index.html | 59 +--------------------- 10 files changed, 10 insertions(+), 515 deletions(-) (limited to 'files/zh-cn/web/api/htmlmediaelement') diff --git a/files/zh-cn/web/api/htmlmediaelement/audiotracks/index.html b/files/zh-cn/web/api/htmlmediaelement/audiotracks/index.html index 59dba0a968..28e40ed346 100644 --- a/files/zh-cn/web/api/htmlmediaelement/audiotracks/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/audiotracks/index.html @@ -53,55 +53,7 @@ alert(myVid.audioTracks.length);

浏览器支持

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
audioTracks property{{CompatUnknown}}{{CompatGeckoDesktop("33.0")}}[5]{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
audioTracks property{{CompatUnknown}}{{CompatGeckoMobile("33.0")}}[5]{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.HTMLMediaElement.audioTracks")}}

还可以看看

diff --git a/files/zh-cn/web/api/htmlmediaelement/autoplay/index.html b/files/zh-cn/web/api/htmlmediaelement/autoplay/index.html index 0da3afbc2c..25f28b0743 100644 --- a/files/zh-cn/web/api/htmlmediaelement/autoplay/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/autoplay/index.html @@ -53,55 +53,7 @@ translation_of: Web/API/HTMLMediaElement/autoplay

浏览器支持

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.1")}} [1]{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("api.HTMLMediaElement.autoplay")}}

看看这里

diff --git a/files/zh-cn/web/api/htmlmediaelement/buffered/index.html b/files/zh-cn/web/api/htmlmediaelement/buffered/index.html index 69df5e6584..27d5a11128 100644 --- a/files/zh-cn/web/api/htmlmediaelement/buffered/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/buffered/index.html @@ -54,55 +54,7 @@ console.log(obj.buffered.end(0));//第一个缓存结束的区域

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
buffered property{{CompatVersionUnknown}}{{CompatGeckoDesktop("2.0")}}{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
buffered property{{CompatVersionUnknown}}{{CompatGeckoMobile("2.0")}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.HTMLMediaElement.buffered")}}

也可以看看

diff --git a/files/zh-cn/web/api/htmlmediaelement/controls/index.html b/files/zh-cn/web/api/htmlmediaelement/controls/index.html index eaabad02c1..66399fc15f 100644 --- a/files/zh-cn/web/api/htmlmediaelement/controls/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/controls/index.html @@ -46,55 +46,7 @@ obj.controls = true;

浏览器兼容

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.1")}} [1]{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("api.HTMLMediaElement.controls")}}

产考文档

diff --git a/files/zh-cn/web/api/htmlmediaelement/currenttime/index.html b/files/zh-cn/web/api/htmlmediaelement/currenttime/index.html index aeed937312..17f094d111 100644 --- a/files/zh-cn/web/api/htmlmediaelement/currenttime/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/currenttime/index.html @@ -56,59 +56,7 @@ console.log(obj.currentTime);

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.1")}} [1]{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("api.HTMLMediaElement.currentTime")}}

相关链接

diff --git a/files/zh-cn/web/api/htmlmediaelement/loop/index.html b/files/zh-cn/web/api/htmlmediaelement/loop/index.html index f53af6a025..65069a3c55 100644 --- a/files/zh-cn/web/api/htmlmediaelement/loop/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/loop/index.html @@ -55,59 +55,7 @@ obj.loop = true; // true

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
loop property{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("11.0")}}{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
loop property{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoMobile("11.0")}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}
-
+{{Compat("api.HTMLMediaElement.loop")}}

相关链接

diff --git a/files/zh-cn/web/api/htmlmediaelement/networkstate/index.html b/files/zh-cn/web/api/htmlmediaelement/networkstate/index.html index 09164c8b35..bdde17ea11 100644 --- a/files/zh-cn/web/api/htmlmediaelement/networkstate/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/networkstate/index.html @@ -98,61 +98,7 @@ obj.addEventListener('playing', function() {

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.1")}} [1]{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidEdgeFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -

[1]  NETWORK_LOADED 已被移除以与Gecko 2.0的HTML规范一致。{{geckoRelease(2)}}. 

+{{Compat("api.HTMLMediaElement.networkState")}}

另见

diff --git a/files/zh-cn/web/api/htmlmediaelement/paused/index.html b/files/zh-cn/web/api/htmlmediaelement/paused/index.html index 3830dc9a7f..4edb829641 100644 --- a/files/zh-cn/web/api/htmlmediaelement/paused/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/paused/index.html @@ -47,55 +47,7 @@ console.log(obj.paused); // true

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.1")}} [1]{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
+{{Compat("api.HTMLMediaElement.paused")}}

参考文档

diff --git a/files/zh-cn/web/api/htmlmediaelement/readystate/index.html b/files/zh-cn/web/api/htmlmediaelement/readystate/index.html index 845b06d2aa..b197dee26c 100644 --- a/files/zh-cn/web/api/htmlmediaelement/readystate/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/readystate/index.html @@ -99,57 +99,7 @@ obj.addEventListener('loadeddata', function() {

浏览器兼容性

-

{{ CompatibilityTable() }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{CompatGeckoDesktop("1.9.1")}} [1]{{CompatIE("9")}}{{CompatUnknown}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -

[1] The NETWORK_LOADED state was removed to align with the HTML spec in Gecko 2.0 {{geckoRelease(2)}}. 

+{{Compat("api.HTMLMediaElement.readyState")}}

你或许还可以看看

diff --git a/files/zh-cn/web/api/htmlmediaelement/srcobject/index.html b/files/zh-cn/web/api/htmlmediaelement/srcobject/index.html index 9377ebf1a9..7f2cf348df 100644 --- a/files/zh-cn/web/api/htmlmediaelement/srcobject/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/srcobject/index.html @@ -42,61 +42,4 @@ translation_of: Web/API/HTMLMediaElement/srcObject

浏览器兼容

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(52.0)}}[1]{{CompatGeckoDesktop("18.0")}}[1][2]
- {{CompatGeckoDesktop("42.0")}}[1]
{{CompatUnknown}}39[1]{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatChrome(52.0)}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}39{{CompatUnknown}}{{CompatChrome(52.0)}}
-
- -

[1] 目前只有 {domxref("MediaStream")}} 对象是支持的。 {domxref("MediaSource")}} , {{domxref("Blob")}} 和 {{domxref("File")}} 对象尚待支持,并会抛出一个类型错误(TypeError)。

- -

[2] Firefox 的早期版本通过非标准化的名称 mozSrcObject 来实现。

+{{Compat("api.HTMLMediaElement.srcObject")}} -- cgit v1.2.3-54-g00ecf