Feature-Policy: microphone
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
HTTP の Feature-Policy
ヘッダーにおける microphone
ディレクティブは、現在の文書がオーディオ入力機器を使用することを許可するかどうかを制御します。このポリシーが有効であれば、 MediaDevices.getUserMedia()
で返却された Promise
が NotAllowedError
で拒否されます。
構文
Feature-Policy: microphone <allowlist>;
- <allowlist>
-
この機能を許可するオリジンのリストです。
Feature-Policy
を参照してください。
既定のポリシー
geolocation
の既定の許可リストは 'self'
です。
仕様書
Specification |
---|
Media Capture and Streams # permissions-policy-integration |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
microphone |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.