aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/http/headers/feature-policy/autoplay/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/http/headers/feature-policy/autoplay/index.html')
-rw-r--r--files/ja/web/http/headers/feature-policy/autoplay/index.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/files/ja/web/http/headers/feature-policy/autoplay/index.html b/files/ja/web/http/headers/feature-policy/autoplay/index.html
new file mode 100644
index 0000000000..b5097026fb
--- /dev/null
+++ b/files/ja/web/http/headers/feature-policy/autoplay/index.html
@@ -0,0 +1,59 @@
+---
+title: 'Feature-Policy: autoplay'
+slug: Web/HTTP/Headers/Feature-Policy/autoplay
+tags:
+ - Feature-Policy
+ - HTTP
+ - Reference
+ - autoplay
+ - ディレクティブ
+ - 機能ポリシー
+translation_of: Web/HTTP/Headers/Feature-Policy/autoplay
+---
+<div>{{HTTPSidebar}} {{SeeCompatTable}}</div>
+
+<p><span class="seoSummary">HTTP の {{HTTPHeader("Feature-Policy")}} ヘッダーにおける <code>autoplay</code> ディレクティブは、現在の文書で {{domxref("HTMLMediaElement")}} インターフェイスによってメディアの自動再生をリクエストすることを許可するかどうかを制御します。</span>このポリシーが有効であれば、 {{domxref("HTMLMediaElement.play()")}} から返却された {{jsxref("Promise")}} が <code>DOMException</code> で拒否されます。 {{HTMLElement("audio")}} および {{HTMLElement("video")}} 要素の {{htmlattrxref("autoplay", "audio")}} 属性は無視されます。</p>
+
+<p>自動再生や自動再生ブロックの詳細については、 <a href="/ja/docs/Web/Media/Autoplay_guide">メディアおよび Web Audio API の自動再生ガイド</a> の記事を参照してください。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">Feature-Policy: autoplay &lt;allowlist&gt;;</pre>
+
+<dl>
+ <dt>&lt;allowlist&gt;</dt>
+ <dd>{{page("/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy", "allowlist")}}既定値は <code>'self'</code> です。</dd>
+</dl>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('Feature Policy')}}</td>
+ <td>{{Spec2('Feature Policy')}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<p>{{Compat("http.headers.Feature-Policy.autoplay")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{HTTPHeader("Feature-Policy")}} ヘッダー</li>
+ <li><a href="/ja/docs/Web/HTTP/Feature_Policy">機能ポリシー</a></li>
+ <li><a href="/ja/docs/Web/HTTP/Feature_Policy/Using_Feature_Policy">機能ポリシーの使用</a></li>
+</ul>