The HTTP Feature-Policy
header microphone
directive controls whether the current document is allowed to use audio input devices. When this policy is enabled, the Promise
returned by MediaDevices.getUserMedia()
will reject with a NotAllowedError
.