aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/mediadevices
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2021-03-30 18:22:36 +0900
committerGitHub <noreply@github.com>2021-03-30 18:22:36 +0900
commit8e33c52f809796c68a683ad343f37ee4e7ce4616 (patch)
tree8173bf5eaf5c192eb2487efe37c7b74997800898 /files/ja/web/api/mediadevices
parent8ea157f6b6fbef9c60695918c6a6382677e5b5df (diff)
downloadtranslated-content-8e33c52f809796c68a683ad343f37ee4e7ce4616.tar.gz
translated-content-8e33c52f809796c68a683ad343f37ee4e7ce4616.tar.bz2
translated-content-8e33c52f809796c68a683ad343f37ee4e7ce4616.zip
Migrate CompatibilityTable to Compat macro (lang-ja) (#356)
* Migrate to Compat macro (ja/mozilla/add-ons/webextensions) * Migrate to Compat macro (ja/web/api)
Diffstat (limited to 'files/ja/web/api/mediadevices')
-rw-r--r--files/ja/web/api/mediadevices/enumeratedevices/index.html60
-rw-r--r--files/ja/web/api/mediadevices/getsupportedconstraints/index.html52
-rw-r--r--files/ja/web/api/mediadevices/ondevicechange/index.html54
3 files changed, 3 insertions, 163 deletions
diff --git a/files/ja/web/api/mediadevices/enumeratedevices/index.html b/files/ja/web/api/mediadevices/enumeratedevices/index.html
index 8ff19d3396..285facc61f 100644
--- a/files/ja/web/api/mediadevices/enumeratedevices/index.html
+++ b/files/ja/web/api/mediadevices/enumeratedevices/index.html
@@ -104,65 +104,7 @@ navigator.mediaDevices.enumerateDevices()
<h2 id="ブラウザ実装状況">ブラウザ実装状況</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>Stream API </td>
- <td>{{CompatChrome(45.0)}} [1]</td>
- <td>39</td>
- <td>{{CompatNo}} </td>
- <td>
- <p>{{CompatNo}}</p>
- </td>
- <td>{{CompatNo}} </td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS (Gecko)</th>
- <th>IE Phone</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Stream API </td>
- <td>{{CompatNo}} </td>
- <td>39</td>
- <td>39</td>
- <td>{{CompatNo}} </td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}} </td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] Behind a flag.</p>
-
-<h3 id="ChromeとOperaの実装">ChromeとOperaの実装</h3>
-
-<ul>
- <li><a href="https://github.com/webrtc/adapter"><u><font color="#0066cc">adapter.js</font></u></a>のポリフィルを通して、ChromeとOperaでこのインターフェイスを使用できます。</li>
-</ul>
+<p>{{Compat("api.MediaDevices.enumerateDevices")}}</p>
<h2 id="関連項目">関連項目</h2>
diff --git a/files/ja/web/api/mediadevices/getsupportedconstraints/index.html b/files/ja/web/api/mediadevices/getsupportedconstraints/index.html
index 973a177674..ff92e8bbfe 100644
--- a/files/ja/web/api/mediadevices/getsupportedconstraints/index.html
+++ b/files/ja/web/api/mediadevices/getsupportedconstraints/index.html
@@ -75,54 +75,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>{{CompatChrome(53)}}</td>
- <td>{{CompatGeckoDesktop(44) }}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{CompatOpera(40)}}</td>
- <td>{{CompatSafari(11)}}</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 Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome(53)}}</td>
- <td>{{CompatChrome(52)}}</td>
- <td>{{ CompatGeckoMobile(50) }}</td>
- <td>{{ CompatUnknown }}</td>
- <td>{{CompatOperaMobile(40)}}</td>
- <td>{{CompatSafari(11)}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+<p>{{Compat("api.MediaDevices.getSupportedConstraints")}}</p>
diff --git a/files/ja/web/api/mediadevices/ondevicechange/index.html b/files/ja/web/api/mediadevices/ondevicechange/index.html
index 73458872b0..946a54de31 100644
--- a/files/ja/web/api/mediadevices/ondevicechange/index.html
+++ b/files/ja/web/api/mediadevices/ondevicechange/index.html
@@ -191,59 +191,7 @@ let videoList = document.getElementById("videoList");</pre>
<h2 id="ブラウザ互換性">ブラウザ互換性</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>Support for this event was added for Linux and Windows—and it was enabled by default—starting in Firefox 52.</p>
-
-<p>[1] <code>devicechange</code>イベントと{{domxref("MediaDevices.ondevicechange")}}のサポートはFirefox 51からですが、ただしMacだけであり、デフォルトで無効になっています。有効にするには、<code>media.ondevicechange.enabled</code>を<code>true</code>に設定してください。Firefox 52から、LinuxとWindowsでサポートされており、デフォルトで有効になっています。</p>
+<p>{{Compat("api.MediaDevices.ondevicechange")}}</p>
<h2 id="関連項目">関連項目</h2>