Need Help With A Project

Need Help With A Project
0.0 0

#1

Does anybody know why my video that I’m linking to in my project isn’t showing up on the webpage? Only the border around it is showing. Here is the page in codepen: https://codepen.io/daner116/pen/oyoXbw?editors=1100

Please help. Thank you.


#2

Does your video link work? I don’t see an error with your code.


#3

@daner116

I also encountered the same problem. I looked for other websites/resources on how they have done it.

Remove this code:

<iframe id="video" src="https://www.youtube.com/watch?v=nX9H9InPWHk&t=15s" frameborder="0" allowfullscreen></iframe>

Use this instead:

        <iframe id="video" src="https://www.youtube-nocookie.com/embed/nX9H9InPWHk?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen="">

#4

Try:

 <iframe width="560" height="315" src="https://www.youtube.com/embed/nX9H9InPWHk" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

#5

You actually had it right the first time. You just forgot to close out the element with
“< / iframe >”


#6

It is closed bro. That’s not the problem.