YouTube parameters: encrypted-media; & clipboard-write; means what?

In the embed code?

The definitions of each would be what?

What do they do, what are their purposes?

<iframe width="642" height="361" src="" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

You can look at the MDN docs for the allow attribute.

MDN: iframe Attributes


Specifies a feature policy for the <iframe>. The policy defines what features are available to the <iframe> based on the origin of the request (e.g. access to the microphone, camera, battery, web-share API, etc.).

Here is the Directives list:

encrypted-media; & clipboard-write; can’t be found on there.


I found this one: encrypted-media;

It looks like it might be part of the Permissions API (Clipboard API, Clipboard.write()).

Not exactly sure how it relates to an iframe with a video, but the attribute value seems pretty obvious.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.