Build a Video Display Using iframe - Step 6

Tell us what’s happening:

I need help with Step 6 of The I frame
Here is what I have allow=“accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share”
and It says I need The allow attribute of your iframe element should have encrypted-media as one of its values.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Display Videos in an iframe</title>
  </head>
  <body>
    <h1>iframe Video Display</h1>

<!-- User Editable Region -->

    <iframe
      width="560"
      height="315"
      src="https://www.youtube.com/embed/I0_951_MPE0"
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"


    </iframe>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0

Challenge Information:

Build a Video Display Using iframe - Step 6

Please reset this step and try again. This time, don’t change any of the seed code and follow the space-delimited syntax pattern.

1 Like

The allow attribute of your iframe element should have web-share as one of its values.

The Code I have is

<meta charset="UTF-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Display Videos in an iframe</title>
<h1>iframe Video Display</h1>

<iframe

  width="560"

  height="315"

  src=" https://www.youtube.com/embed/I0_951_MPE0 "

  allow="accelerometer autoplay clipboard-write encrypted-media gyroscope picture-in-picture web-share "

  >



</iframe>

Where were you asked to add picture-in-picture?