From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../web/api/navigator/mediacapabilities/index.html | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/ja/web/api/navigator/mediacapabilities/index.html (limited to 'files/ja/web/api/navigator/mediacapabilities') diff --git a/files/ja/web/api/navigator/mediacapabilities/index.html b/files/ja/web/api/navigator/mediacapabilities/index.html new file mode 100644 index 0000000000..f2a8b7b740 --- /dev/null +++ b/files/ja/web/api/navigator/mediacapabilities/index.html @@ -0,0 +1,76 @@ +--- +title: Navigator.mediaCapabilities +slug: Web/API/Navigator/mediaCapabilities +tags: + - API + - Experimental + - MediaCapabilities + - Navigator + - メディア + - メディア能力 API +translation_of: Web/API/Navigator/mediaCapabilities +--- +

{{SeeCompatTable}}

+ +

Navigator.mediaCapabilities プロパティは読み取り専用で、 Media Capabilities API で定義されているように、指定された形式のエンコードとデコードおよび出力能力についての情報を取得することができる {{domxref("MediaCapabilities")}} オブジェクトを返します。

+ +

構文

+ +
mediaCapabilitiesObj = globalObj.navigator.mediaCapabilities
+
+ +

+ +

{{domxref("MediaCapabilities")}} オブジェクト。

+ +

+ +
navigator.mediaCapabilities.decodingInfo({
+    type : 'file',
+    audio : {
+        contentType : "audio/mp3",
+        channels : 2,
+        bitrate : 132700,
+        samplerate : 5200
+    }
+}).then(function(result) {
+  console.log('This configuration is ' +
+        (result.supported ? '' : 'not ') + 'supported, ' +
+        (result.smooth ? '' : 'not ') + 'smooth, and ' +
+        (result.powerEfficient ? '' : 'not ') + 'power efficient.')
+});
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Media Capabilities')}}{{Spec2('Media Capabilities')}}初回定義
+ +

ブラウザーの対応

+ + + +

{{Compat("api.Navigator.mediaCapabilities")}}

+ +

関連情報

+ + + +

{{APIRef("HTML DOM")}}

-- cgit v1.2.3-54-g00ecf