From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../aspectratio/index.html | 129 ++++++++++++++++++ .../autogaincontrol/index.html | 133 +++++++++++++++++++ .../channelcount/index.html | 129 ++++++++++++++++++ .../deviceid/index.html | 129 ++++++++++++++++++ .../echocancellation/index.html | 129 ++++++++++++++++++ .../facingmode/index.html | 92 +++++++++++++ .../framerate/index.html | 145 +++++++++++++++++++++ .../groupid/index.html | 129 ++++++++++++++++++ .../height/index.html | 129 ++++++++++++++++++ .../api/mediatracksupportedconstraints/index.html | 61 +++++++++ .../latency/index.html | 129 ++++++++++++++++++ .../noisesuppression/index.html | 135 +++++++++++++++++++ .../samplerate/index.html | 129 ++++++++++++++++++ .../samplesize/index.html | 129 ++++++++++++++++++ .../volume/index.html | 129 ++++++++++++++++++ 15 files changed, 1856 insertions(+) create mode 100644 files/ja/web/api/mediatracksupportedconstraints/aspectratio/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/autogaincontrol/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/channelcount/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/deviceid/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/echocancellation/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/facingmode/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/framerate/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/groupid/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/height/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/latency/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/noisesuppression/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/samplerate/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/samplesize/index.html create mode 100644 files/ja/web/api/mediatracksupportedconstraints/volume/index.html (limited to 'files/ja/web/api/mediatracksupportedconstraints') diff --git a/files/ja/web/api/mediatracksupportedconstraints/aspectratio/index.html b/files/ja/web/api/mediatracksupportedconstraints/aspectratio/index.html new file mode 100644 index 0000000000..3f3769927f --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/aspectratio/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.aspectRatio +slug: Web/API/MediaTrackSupportedConstraints/aspectRatio +translation_of: Web/API/MediaTrackSupportedConstraints/aspectRatio +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのaspectRatioプロパティは読み取り専用のBooleanの値です。user agentaspectRatioの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
aspectConstraintSupported = supportedConstraintsDictionary["aspectRatio"];
+ +

+ +

ユーザエージェントaspectRatioの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、{{jsxref("undefined")}}の値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["aspectRatio"]) {
+    result.innerHTML = "Supported!";
+} else {
+    result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-aspectRatio', 'aspectRatio') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/autogaincontrol/index.html b/files/ja/web/api/mediatracksupportedconstraints/autogaincontrol/index.html new file mode 100644 index 0000000000..e5e0d159b3 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/autogaincontrol/index.html @@ -0,0 +1,133 @@ +--- +title: MediaTrackSupportedConstraints.autoGainControl +slug: Web/API/MediaTrackSupportedConstraints/autoGainControl +translation_of: Web/API/MediaTrackSupportedConstraints/autoGainControl +--- +
{{domxref("MediaTrackSupportedConstraints")}}ディクショナリーのautoGainControlプロパティは読み取り専用のBooleanの値です。{{Glossary("user agent")}}がautoGainControlの制約をサポートしている場合、{{domxref("MediaDevices.getSupportedConstraints()")}}の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。
+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

autoGainControlの制約は、ブラウザが、メディアトラックの(ボリューム)ゲインを自動的に制御する機能を提供するかどうかを示します。当然ながら、これは個々のデバイスが自動ゲイン制御をサポートしているかに依存します。一般的に、この機能はマイクが提供します。

+ +

文法

+ +
autoGainSupported = supportedConstraintsDictionary["autoGainControl"];
+ +

+ +

ユーザエージェントautoGainControlの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、{{jsxref("undefined")}}の値を取ることになります。

+ +

+ +

この例では、単純に、あなたのブラウザがautoGainControlの制約をサポートしているかどうかを表示するものです。

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["autoGainControl"]) {
+    result.innerHTML = "Supported!";
+} else {
+    result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状態コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-autoGainControl', 'autoGainControl') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}mozAutoGainControl {{ CompatGeckoDesktop(46) }}
+ autoGainControl {{CompatGeckoDesktop(55)}}
{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}mozAutoGainControl {{ CompatGeckoMobile(46) }}
+ autoGainControl {{CompatGeckoMobile(50)}}
{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/channelcount/index.html b/files/ja/web/api/mediatracksupportedconstraints/channelcount/index.html new file mode 100644 index 0000000000..43a359a3cd --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/channelcount/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.channelCount +slug: Web/API/MediaTrackSupportedConstraints/channelCount +translation_of: Web/API/MediaTrackSupportedConstraints/channelCount +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのchannelCountプロパティは読み取り専用のBooleanの値です。user agentchannelCountの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
channelCountConstraintSupported = supportedConstraintsDictionary["channelCount"];
+ +

+ +

ユーザエージェントchannelCountの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["channelCount"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-channelCount', 'channelCount') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/deviceid/index.html b/files/ja/web/api/mediatracksupportedconstraints/deviceid/index.html new file mode 100644 index 0000000000..73e2d591b6 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/deviceid/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.deviceId +slug: Web/API/MediaTrackSupportedConstraints/deviceId +translation_of: Web/API/MediaTrackSupportedConstraints/deviceId +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのdeviceIdプロパティは読み取り専用のBooleanの値です。user agentdeviceIdの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
deviceIdConstraintSupported = supportedConstraintsDictionary["deviceId"];
+ +

+ +

ユーザエージェントdeviceIdの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["deviceId"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-deviceId', 'deviceId') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/echocancellation/index.html b/files/ja/web/api/mediatracksupportedconstraints/echocancellation/index.html new file mode 100644 index 0000000000..248188478a --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/echocancellation/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.echoCancellation +slug: Web/API/MediaTrackSupportedConstraints/echoCancellation +translation_of: Web/API/MediaTrackSupportedConstraints/echoCancellation +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのechoCancellationプロパティは読み取り専用のBooleanの値です。user agentechoCancellationの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
echoCancellationConstraintSupported = supportedConstraintsDictionary["echoCancellation"];
+ +

+ +

ユーザエージェントechoCancellationの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["echoCancellation"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-echoCancellation', 'echoCancellation') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/facingmode/index.html b/files/ja/web/api/mediatracksupportedconstraints/facingmode/index.html new file mode 100644 index 0000000000..ea523e0390 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/facingmode/index.html @@ -0,0 +1,92 @@ +--- +title: MediaTrackSupportedConstraints.facingMode +slug: Web/API/MediaTrackSupportedConstraints/facingMode +tags: + - API + - Constraints + - Media + - Media Capture and Streams API + - Media Streams API + - MediaTrackSupportedConstraints + - Property + - Web + - WebRTC + - facingMode +translation_of: Web/API/MediaTrackSupportedConstraints/facingMode +--- +

{{APIRef("Media Capture and Streams")}}

+ +

{{domxref("MediaTrackSupportedConstraints")}} 辞書の facingMode プロパティは読み取り専用のブール値で、{{Glossary("user agent", "ユーザーエージェント")}}が facingMode の制約に対応している場合にのみ、 {{domxref("MediaDevices.getSupportedConstraints()")}} が返すオブジェクトに存在します (そして true に設定されます)。制約がサポートされていない場合はリストに含まれないので、この値は決して false にはなりません。

+ +

対応している制約の辞書にアクセスするには navigator.mediaDevices.getSupportedConstraints()を呼び出してください。

+ +

構文

+ +
facingModeConstraintSupported = supportedConstraintsDictionary.facingMode;
+ +

+ +

このプロパティは、ユーザーエージェントが facingMode 制約に対応している場合、辞書に存在します (そして、その値は常に true です)。このプロパティが存在しない場合、このプロパティは対応している制約ディクショナリから欠落しており、その値を見ようとすると {{jsxref("undefined")}} になります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints().facingMode) {
+    result.innerHTML = "Supported!";
+} else {
+    result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('Media Capture', '#dom-mediatracksupportedconstraints-facingmode', 'facingMode') }}{{ Spec2('Media Capture') }}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.MediaTrackSupportedConstraints.facingMode")}}

+ +

関連情報

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/framerate/index.html b/files/ja/web/api/mediatracksupportedconstraints/framerate/index.html new file mode 100644 index 0000000000..4c14481223 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/framerate/index.html @@ -0,0 +1,145 @@ +--- +title: MediaTrackSupportedConstraints.frameRate +slug: Web/API/MediaTrackSupportedConstraints/frameRate +translation_of: Web/API/MediaTrackSupportedConstraints/frameRate +--- +
{{APIRef("Media Capture and Streams")}}
+ +
 
+ +

MediaTrackSupportedConstraintsディクショナリーのframeRateプロパティは読み取り専用のBooleanの値です。user agentframeRateの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

frameRate制約は、新しいビデオトラックのフレームレートの許容できる上限と下限、あるいは正確なフレームレートを表すのに用いられます。このプロパティの値を確認することで、フレームレートでのビデオトラック設定の制約をユーザーエージェントが対応しているかを特定することができます。どのように使われるかは{{anch("Example", "example")}}を見てください。

+ +

文法

+ +
frameRateConstraintSupported = supportedConstraintsDictionary["frameRate"];
+ +

+ +

ユーザーエージェントがframeRateの制約をサポートする場合、このプロパティはディクショナリーに存在します。このプロパティが存在しない場合は、ユーザーエージェントは、ビデオトラックのフレームレートを制限することができません。

+ +
+

このプロパティが存在する場合は、常にtrueになります。

+
+ +

+ +

この簡単な例では、ビデオの要求時でのフレームレートの制約をブラウザがサポートしているかどうかを確認するものです。

+ +

JavaScript

+ +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["frameRate"]) {
+    result.innerHTML = "Supported!";
+} else {
+    result.innerHTML = "Not supported!";
+}
+ +
+

HTML

+
+ +
<div id="result">
+</div>
+
+ +
+

CSS

+
+ +
#result {
+  font: 14px "Arial", sans-serif;
+}
+
+ +

結果

+ +

利用中のブラウザがframeRateの制約をサポートしているかどうかは次の通りです。

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

この例はとても簡単なので、"Supported"と"Not supported"の単純な出力を、視聴覚情報を表現するための別の方法に置き換えることができます。

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-frameRate', 'frameRate') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/groupid/index.html b/files/ja/web/api/mediatracksupportedconstraints/groupid/index.html new file mode 100644 index 0000000000..17be27190f --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/groupid/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.groupId +slug: Web/API/MediaTrackSupportedConstraints/groupId +translation_of: Web/API/MediaTrackSupportedConstraints/groupId +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのgroupIdプロパティは読み取り専用のBooleanの値です。user agentgroupIdの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
groupIdConstraintSupported = supportedConstraintsDictionary["groupId"];
+ +

+ +

ユーザエージェントgroupIdの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["groupId"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-groupId', 'groupId') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/height/index.html b/files/ja/web/api/mediatracksupportedconstraints/height/index.html new file mode 100644 index 0000000000..1c12dbb53e --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/height/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.height +slug: Web/API/MediaTrackSupportedConstraints/height +translation_of: Web/API/MediaTrackSupportedConstraints/height +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのheightプロパティは読み取り専用のBooleanの値です。user agentheightの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
heightConstraintSupported = supportedConstraintsDictionary["height"];
+ +

+ +

ユーザエージェントheightの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["height"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-height', 'height') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/index.html b/files/ja/web/api/mediatracksupportedconstraints/index.html new file mode 100644 index 0000000000..aa232ebfd2 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/index.html @@ -0,0 +1,61 @@ +--- +title: MediaTrackSupportedConstraints +slug: Web/API/MediaTrackSupportedConstraints +translation_of: Web/API/MediaTrackSupportedConstraints +--- +
{{APIRef("Media Capture and Streams")}}
+ +

MediaTrackSupportedConstraintsディクショナリは、{{domxref("MediaStreamTrack")}}オブジェクトを実装している{{Glossary("user agent")}}やブラウザによって理解できる制約可能なプロパティの一覧を表します。{{domxref("MediaDevices.getSupportedConstraints()")}}によって、MediaTrackSupportedConstraintsに適合するオブジェクトが戻り値として返されます。

+ +

WebIDLでのインタフェース定義の手順で動作するため、制約は受け付けられたがサポートしていない場合エラーは発生しません。代わりに、指定された制約は解釈できなかった制約を除いて適用されるでしょう。これは混乱を招きエラーのデバッグを困難にするので、制約が暗黙的に無視されたのか制約が受け付けられたのかを知りたい場合は、getSupportedConstraints()を用いて、制約の確立を試みる前にこの情報を取得してください。

+ +

実際の制約セットは{{domxref("MediaTrackConstraints")}}ディクショナリをベースにしたオブジェクトで表現されます。

+ +

制約がどのように動作するかについての詳細を知りたい場合は、Capabilities, constraints, and settingsを読んでください。

+ +

プロパティ

+ +

オブジェクトは以下のプロパティの組み合わせであり、必ずしも全てのプロパティが含まれるわけではありません。

+ +
+
{{domxref("MediaTrackSupportedConstraints.autoGainControl", "autoGainControl")}}
+
実行環境でautoGainControl制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.width", "width")}}
+
実行環境でwidth制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.height", "height")}}
+
実行環境でheight制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.aspectRatio", "aspectRatio")}}
+
実行環境でaspectRatio制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.frameRate", "frameRate")}}
+
実行環境でframeRate制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.facingMode", "facingMode")}}
+
実行環境でfacingMode制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.volume", "volume")}}
+
実行環境でvolume制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.sampleRate", "sampleRate")}}
+
実行環境でsampleRate制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.sampleSize", "sampleSize")}}
+
実行環境でsampleSize制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.echoCancellation", "echoCancellation")}}
+
実行環境でechoCancellation制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.latency", "latency")}}
+
実行環境でlatency 制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.noiseSuppression", "noiseSuppression")}}
+
実行環境でnoiseSuppression制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.channelCount", "channelCount")}}
+
実行環境でchannelCount制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.deviceId", "deviceId")}}
+
実行環境でdeviceId制約がサポートされている場合は、Boolean型のtrueの値になります。
+
{{domxref("MediaTrackSupportedConstraints.groupId", "groupId")}}
+
実行環境でgroupId制約がサポートされている場合は、Boolean型のtrueの値になります。
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/latency/index.html b/files/ja/web/api/mediatracksupportedconstraints/latency/index.html new file mode 100644 index 0000000000..276fbf1c5a --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/latency/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.latency +slug: Web/API/MediaTrackSupportedConstraints/latency +translation_of: Web/API/MediaTrackSupportedConstraints/latency +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのlatencyプロパティは読み取り専用のBooleanの値です。user agentlatencyの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
latencyConstraintSupported = supportedConstraintsDictionary["latency"];
+ +

+ +

ユーザエージェントlatencyの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["latency"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-latency', 'latency') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/noisesuppression/index.html b/files/ja/web/api/mediatracksupportedconstraints/noisesuppression/index.html new file mode 100644 index 0000000000..df55f1aef4 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/noisesuppression/index.html @@ -0,0 +1,135 @@ +--- +title: MediaTrackSupportedConstraints.noiseSuppression +slug: Web/API/MediaTrackSupportedConstraints/noiseSuppression +translation_of: Web/API/MediaTrackSupportedConstraints/noiseSuppression +--- +
{{APIRef("Media Capture and Streams")}}
+ +

MediaTrackSupportedConstraintsディクショナリーのnoiseSuppressionプロパティは読み取り専用のBooleanの値です。user agentnoiseSuppressionの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

noiseSuppressionの制約は、ブラウザがノイズ抑制の機能を提供しているかどうかを表すものです。当たり前ですが、個々のデバイスがサポートしているかどうかに依存します。

+ +

文法

+ +
noiseSuppressionSupported = supportedConstraintsDictionary["noiseSuppression"];
+ +

+ +

ユーザエージェントnoiseSuppressionの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ +

この例では単純に、noiseSuppressionの制約をブラウザーがサポートしているかどうかを表示するものです。

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["noiseSuppression"]) {
+    result.innerHTML = "Supported!";
+} else {
+    result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-noiseSuppression', 'noiseSuppression') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}mozNoiseSuppression {{ CompatGeckoDesktop(46) }}
+ noiseSuppression {{CompatGeckoDesktop(55)}}
{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}mozNoiseSuppression {{ CompatGeckoMobile(50) }}
+ noiseSuppression {{CompatGeckoMobile(50)}}
{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/samplerate/index.html b/files/ja/web/api/mediatracksupportedconstraints/samplerate/index.html new file mode 100644 index 0000000000..04f80154e7 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/samplerate/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.sampleRate +slug: Web/API/MediaTrackSupportedConstraints/sampleRate +translation_of: Web/API/MediaTrackSupportedConstraints/sampleRate +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのsampleRateプロパティは読み取り専用のBooleanの値です。user agentsampleRateの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
sampleRateConstraintSupported = supportedConstraintsDictionary["sampleRate"];
+ +

+ +

ユーザエージェントsampleRateの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["sampleRate"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-sampleRate', 'sampleRate') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/samplesize/index.html b/files/ja/web/api/mediatracksupportedconstraints/samplesize/index.html new file mode 100644 index 0000000000..c6cbf29902 --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/samplesize/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.sampleSize +slug: Web/API/MediaTrackSupportedConstraints/sampleSize +translation_of: Web/API/MediaTrackSupportedConstraints/sampleSize +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのsampleSizeプロパティは読み取り専用のBooleanの値です。user agentsampleSizeの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
sampleSizeConstraintSupported = supportedConstraintsDictionary["sampleSize"];
+ +

+ +

ユーザエージェントsampleSizeの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["sampleSize"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-sampleSize', 'sampleSize') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

+ + diff --git a/files/ja/web/api/mediatracksupportedconstraints/volume/index.html b/files/ja/web/api/mediatracksupportedconstraints/volume/index.html new file mode 100644 index 0000000000..b29f54b51a --- /dev/null +++ b/files/ja/web/api/mediatracksupportedconstraints/volume/index.html @@ -0,0 +1,129 @@ +--- +title: MediaTrackSupportedConstraints.volume +slug: Web/API/MediaTrackSupportedConstraints/volume +translation_of: Web/API/MediaTrackSupportedConstraints/volume +--- +

{{APIRef("Media Capture and Streams")}}

+ +

MediaTrackSupportedConstraintsディクショナリーのvolumeプロパティは読み取り専用のBooleanの値です。user agentvolumeの制約をサポートしている場合、MediaDevices.getSupportedConstraints()の戻り値のオブジェクトに含まれtrueが設定されます。この制約がサポートされない場合は含まれないため、falseになることはありません。

+ +

サポートされている制約のディクショナリーはnavigator.mediaDevices.getSupportedConstraints()を呼び出すことで取得できます。

+ +

文法

+ +
volumeConstraintSupported = supportedConstraintsDictionary["volume"];
+ +

+ +

ユーザエージェントvolumeの制約をサポートしている場合、このプロパティはディクショナリーの中に含まれ、その値は常にtrueの値です。このプロパティが存在しない場合は、サポートされている制約ディクショナリーには存在しないため、undefinedの値を取ることになります。

+ +

+ + + +
let result = document.getElementById("result");
+
+if (navigator.mediaDevices.getSupportedConstraints()["volume"]) {
+  result.innerHTML = "Supported!";
+} else {
+  result.innerHTML = "Not supported!";
+}
+ +

結果

+ +

{{ EmbedLiveSample('Example', 600, 80) }}

+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様状況コメント
{{ SpecName('Media Capture', '#widl-MediaTrackSupportedConstraints-volume', 'volume') }}{{ Spec2('Media Capture') }}初版
+ +

ブラウザ互換性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop(50) }}{{CompatNo}}{{CompatVersionUnknown}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatUnknown}}{{CompatVersionUnknown}}{{ CompatGeckoMobile(50) }}{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}{{CompatVersionUnknown}}
+
+ +

関連項目

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