From b478fc88a8db7c3e2b525bb195dbcbb7bf6bd212 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 22 Jan 2022 11:09:33 +0900 Subject: Feature-Policy: autoplay を移行 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../headers/feature-policy/autoplay/index.html | 53 ---------------------- .../http/headers/feature-policy/autoplay/index.md | 53 ++++++++++++++++++++++ 2 files changed, 53 insertions(+), 53 deletions(-) delete mode 100644 files/ja/web/http/headers/feature-policy/autoplay/index.html create mode 100644 files/ja/web/http/headers/feature-policy/autoplay/index.md (limited to 'files/ja/web/http/headers') diff --git a/files/ja/web/http/headers/feature-policy/autoplay/index.html b/files/ja/web/http/headers/feature-policy/autoplay/index.html deleted file mode 100644 index 8bbcff3f65..0000000000 --- a/files/ja/web/http/headers/feature-policy/autoplay/index.html +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: 'Feature-Policy: autoplay' -slug: Web/HTTP/Headers/Feature-Policy/autoplay -tags: - - Feature-Policy - - HTTP - - リファレンス - - autoplay - - ディレクティブ - - 機能ポリシー -translation_of: Web/HTTP/Headers/Feature-Policy/autoplay ---- -{{HTTPSidebar}} {{SeeCompatTable}} - -HTTP の {{HTTPHeader("Feature-Policy")}} ヘッダーにおける `autoplay` ディレクティブは、現在の文書で {{domxref("HTMLMediaElement")}} インターフェイスによってメディアの自動再生をリクエストすることを許可するかどうかを制御します。このポリシーが有効であれば、 {{domxref("HTMLMediaElement.play()")}} から返却された {{jsxref("Promise")}} が `DOMException` で拒否されます。 {{HTMLElement("audio")}} および {{HTMLElement("video")}} 要素の {{htmlattrxref("autoplay", "audio")}} 属性は無視されます。 - -自動再生や自動再生ブロックの詳細については、 [メディアおよび Web Audio API の自動再生ガイド](/ja/docs/Web/Media/Autoplay_guide) の記事を参照してください。 - -## 構文 - -
Feature-Policy: autoplay <allowlist>;
- -
<allowlist>
-
{{page("/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}}既定値は `'self'` です。
- -## 仕様書 - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('Feature Policy')}}{{Spec2('Feature Policy')}}初回定義
- -

ブラウザーの対応

- -{{Compat("http.headers.Feature-Policy.autoplay")}} - -## 関連情報 - -- {{HTTPHeader("Feature-Policy")}} ヘッダー -- [機能ポリシー](/ja/docs/Web/HTTP/Feature_Policy) -- [機能ポリシーの使用](/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy) diff --git a/files/ja/web/http/headers/feature-policy/autoplay/index.md b/files/ja/web/http/headers/feature-policy/autoplay/index.md new file mode 100644 index 0000000000..8bbcff3f65 --- /dev/null +++ b/files/ja/web/http/headers/feature-policy/autoplay/index.md @@ -0,0 +1,53 @@ +--- +title: 'Feature-Policy: autoplay' +slug: Web/HTTP/Headers/Feature-Policy/autoplay +tags: + - Feature-Policy + - HTTP + - リファレンス + - autoplay + - ディレクティブ + - 機能ポリシー +translation_of: Web/HTTP/Headers/Feature-Policy/autoplay +--- +{{HTTPSidebar}} {{SeeCompatTable}} + +HTTP の {{HTTPHeader("Feature-Policy")}} ヘッダーにおける `autoplay` ディレクティブは、現在の文書で {{domxref("HTMLMediaElement")}} インターフェイスによってメディアの自動再生をリクエストすることを許可するかどうかを制御します。このポリシーが有効であれば、 {{domxref("HTMLMediaElement.play()")}} から返却された {{jsxref("Promise")}} が `DOMException` で拒否されます。 {{HTMLElement("audio")}} および {{HTMLElement("video")}} 要素の {{htmlattrxref("autoplay", "audio")}} 属性は無視されます。 + +自動再生や自動再生ブロックの詳細については、 [メディアおよび Web Audio API の自動再生ガイド](/ja/docs/Web/Media/Autoplay_guide) の記事を参照してください。 + +## 構文 + +
Feature-Policy: autoplay <allowlist>;
+ +
<allowlist>
+
{{page("/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}}既定値は `'self'` です。
+ +## 仕様書 + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Feature Policy')}}{{Spec2('Feature Policy')}}初回定義
+ +

ブラウザーの対応

+ +{{Compat("http.headers.Feature-Policy.autoplay")}} + +## 関連情報 + +- {{HTTPHeader("Feature-Policy")}} ヘッダー +- [機能ポリシー](/ja/docs/Web/HTTP/Feature_Policy) +- [機能ポリシーの使用](/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy) -- cgit v1.2.3-54-g00ecf