aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/mediadevices
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/mediadevices')
-rw-r--r--files/zh-cn/web/api/mediadevices/devicechange_event/index.html61
-rw-r--r--files/zh-cn/web/api/mediadevices/getsupportedconstraints/index.html54
-rw-r--r--files/zh-cn/web/api/mediadevices/ondevicechange/index.html52
3 files changed, 3 insertions, 164 deletions
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
<h2 id="浏览器兼容性">浏览器兼容性</h2>
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Edge</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(52.0)}}</td>
- <td>{{CompatGeckoDesktop(51)}}<sup>[1]</sup></td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>39</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Edge</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>39</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Support for the <code>devicechange</code> event and for {{domxref("MediaDevices.ondevicechange")}} landed in Firefox 51, but <em>only for Mac</em>, and disabled by default. It can be enabled by setting the preference <code>media.ondevicechange.enabled</code> to <code>true</code>. Support for this event was added for Linux and Windows—and it was enabled by default—starting in Firefox 52.</p>
+{{Compat("api.MediaDevices.devicechange_event")}}
<h2 id="See_also">See also</h2>
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) {
<h2 id="浏览器支持情况">浏览器支持情况</h2>
-<p>{{ CompatibilityTable }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Microsoft Edge</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatVersionUnknown }}</td>
- <td>{{CompatGeckoDesktop(50) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{ CompatUnknown }}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- <th>Chrome for Android</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{ CompatGeckoMobile(48) }}</td>
- <td>{{ CompatGeckoMobile(50) }}</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{ CompatVersionUnknown }}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{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");</pre>
<h2 id="Browser_compatibility">Browser compatibility</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(57)}}</td>
- <td>{{CompatGeckoDesktop(51)}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatOpera(34)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android Webview</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOperaMobile(34)}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Support for the <code>devicechange</code> event and for {{domxref("MediaDevices.ondevicechange")}} landed in Firefox 51, but <em>only for Mac</em>, and disabled by default. It can be enabled by setting the preference <code>media.ondevicechange.enabled</code> to <code>true</code>. Support for this event was added for Linux and Windows—and it was enabled by default—starting in Firefox 52.</p>
+{{Compat("api.MediaDevices.ondevicechange")}}
<h2 id="See_also">See also</h2>