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