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="https://www.youtube.com/embed/tSy7rmtHuRA" 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
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:
clipboard-write; can’t be found on there.
I found this one:
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.
December 5, 2021, 5:34am
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.