consent-required

speaker

The speaker policy controls access to audio output devices requested through the NavigatorUserMedia interface.

If disallowed in a document, then calls to getUserMedia() MUST NOT grant access to audio output devices in that document.

How to apply this policy

Send the following HTTP header to control the speaker policy, and disallow it on all origins:

Feature-Policy: speaker 'none'

Does it work?

Currently Firefox, and Chromium based browsers, such as Google Chrome, Samsung Internet, and Opera, are the only user-agents to support Feature Policy. The minimum version that correctly recognises the speaker policy is:

Mozilla Firefox

Not supported

Google Chrome

60+

Microsoft Edge

Not supported

Apple Safari

Not supported

Discussion