The autoplay feature controls access to autoplay of media requested through the HTMLMediaElement interface.
How to apply this policy
Send the following HTTP header to control the
autoplay policy, and disallow
it on all origins:
Feature-Policy: autoplay '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
autoplay policy is: