Permissions-Policy autoplay

Demo of the autoplay feature of the Permissions-Policy header.

The HTTP Permissions-Policy header's autoplay directive is used to control which domains, if any, can be used to autoplay media. By default, the autoplay Permissions Policy is set to self, indicating that autoplay is permitted as they're hosted on the same domain as the document.

Video in a video element.

Video in an iframe.