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 allow
attribute.
MDN: iframe Attributes
allow
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.
Updated:
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.
https://www.google.com/search?q=iframe+allow+clipboard-write
system
Closed
December 5, 2021, 5:34am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.