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/mediadevices/devicechange_event/index.html | 61 +--------------------- .../getsupportedconstraints/index.html | 54 +------------------ .../web/api/mediadevices/ondevicechange/index.html | 52 +----------------- 3 files changed, 3 insertions(+), 164 deletions(-) (limited to 'files/zh-cn/web/api/mediadevices') diff --git a/files/zh-cn/web/api/mediadevices/devicechange_event/index.html b/files/zh-cn/web/api/mediadevices/devicechange_event/index.html index 7ebc7fb71f..6ed36e1a0a 100644 --- a/files/zh-cn/web/api/mediadevices/devicechange_event/index.html +++ b/files/zh-cn/web/api/mediadevices/devicechange_event/index.html @@ -85,66 +85,7 @@ translation_of: Web/API/MediaDevices/devicechange_event

浏览器兼容性

-

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)EdgeInternet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(52.0)}}{{CompatGeckoDesktop(51)}}[1]{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}39{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewEdgeFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}{{CompatUnknown}}{{CompatUnknown}}39{{CompatUnknown}}{{CompatNo}}
-
- -

[1] Support for the devicechange event and for {{domxref("MediaDevices.ondevicechange")}} landed in Firefox 51, but only for Mac, and disabled by default. It can be enabled by setting the preference media.ondevicechange.enabled to true. Support for this event was added for Linux and Windows—and it was enabled by default—starting in Firefox 52.

+{{Compat("api.MediaDevices.devicechange_event")}}

See also

diff --git a/files/zh-cn/web/api/mediadevices/getsupportedconstraints/index.html b/files/zh-cn/web/api/mediadevices/getsupportedconstraints/index.html index 1dbc22edcf..601afc469c 100644 --- a/files/zh-cn/web/api/mediadevices/getsupportedconstraints/index.html +++ b/files/zh-cn/web/api/mediadevices/getsupportedconstraints/index.html @@ -77,56 +77,4 @@ for (let constraint in supportedConstraints) {

浏览器支持情况

-

{{ CompatibilityTable }}

- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerMicrosoft EdgeOperaSafari
Basic support{{ CompatVersionUnknown }}{{CompatGeckoDesktop(50) }}{{CompatUnknown}}{{ CompatUnknown }}{{ CompatUnknown }}{{ CompatUnknown }}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{ CompatUnknown }}{{ CompatGeckoMobile(48) }}{{ CompatGeckoMobile(50) }}{{ CompatUnknown }}{{ CompatUnknown }}{{ CompatUnknown }}{{ CompatVersionUnknown }}
-
+{{Compat("api.MediaDevices.getSupportedConstraints")}} diff --git a/files/zh-cn/web/api/mediadevices/ondevicechange/index.html b/files/zh-cn/web/api/mediadevices/ondevicechange/index.html index 5648fc6957..1bf012abf9 100644 --- a/files/zh-cn/web/api/mediadevices/ondevicechange/index.html +++ b/files/zh-cn/web/api/mediadevices/ondevicechange/index.html @@ -191,57 +191,7 @@ let videoList = document.getElementById("videoList");

Browser compatibility

-
{{CompatibilityTable}}
- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(57)}}{{CompatGeckoDesktop(51)}}{{CompatUnknown}}{{CompatOpera(34)}}{{CompatUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - - - -
FeatureAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatUnknown}}{{CompatNo}}{{CompatOperaMobile(34)}}{{CompatUnknown}}
-
- -

[1] Support for the devicechange event and for {{domxref("MediaDevices.ondevicechange")}} landed in Firefox 51, but only for Mac, and disabled by default. It can be enabled by setting the preference media.ondevicechange.enabled to true. Support for this event was added for Linux and Windows—and it was enabled by default—starting in Firefox 52.

+{{Compat("api.MediaDevices.ondevicechange")}}

See also

-- cgit v1.2.3-54-g00ecf