Why I can't display a video? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Why I can't display a video?

Hello, actually I am coding in html and I can't display a video, whereas I have the good YouTube link. Do you have any advice?

19th Jan 2018, 4:02 PM
Christophe Tenadet
Christophe Tenadet - avatar
10 Respostas
+ 7
I've tried to embed your video. Here's the code <iframe width="320" height="240" src="https://www.youtube.com/embed/lKn-Agk-yAI"></iframe> However what I came up with this video it can't watched as embedded since the owner of this video put a restriction on it.
19th Jan 2018, 8:05 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 7
19th Jan 2018, 6:07 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 7
That's happening because you're using a shortened url of that video. Try to get a original url of that video and then follow the instructions mentioned in that lesson.
19th Jan 2018, 7:51 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 2
Thank you, I'm going to Try it right now
19th Jan 2018, 4:15 PM
Christophe Tenadet
Christophe Tenadet - avatar
+ 2
Well, it's not working, I have an error message
19th Jan 2018, 4:19 PM
Christophe Tenadet
Christophe Tenadet - avatar
+ 2
Oh OK, it's a good thing to know. Thanks a lot for your help, you were really kind to take time for me. I wish you a good day.
19th Jan 2018, 8:11 PM
Christophe Tenadet
Christophe Tenadet - avatar
+ 1
Thank you šŸ˜Š I'm am a beginner so it's quite difficult for me. <!DOCTYPE html> <html> <head> <title>Top 10 of my favorite movies</title> </head> <body> <p><h2 align="center" class="top">My top 10</h2></p> <p><h4 class="present">Hello everyone, today i wanted to make you a page about my top 10 movies. I hope you will enjoy it. Comment your top 10, it would be really interesting to me to see your top 10!</h4> <p><h3 align="center"><marquee direction="left">number 10: Fury</marquee></h3> <img src="https://timedotcom.files.wordpress.com/2014/10/fury-brad-pitt.jpg" width=250px> <p class="Fury">FuryĀ is a 2014 AmericanĀ war filmĀ written and directed byĀ David Ayer, and starsĀ Brad Pitt,Ā Shia LaBeouf,Ā Logan Lerman,Ā Michael PeƱa,Ā Jon BernthalĀ andĀ Jason Isaacs. The film portrays US tank crews inĀ Nazi Germanyduring the final days ofĀ World War II. Ayer was influenced by the service of veterans in his family and by reading books, such as Belton Y. Cooper'sĀ Death Traps, about American armored units in World War II and the high casualty rates suffered by tank crews in Europe.</p> <p><h3 class="move"><marquee direction="left">Number 9: gladiator</h3></marquee> <iframe width="300" height="400" src="https://youtu.be/lKn-Agk-yAI" frameborder="0"allowfullscreen></iframe> <a href="https://youtu.be/lKn-Agk-yAI">gladiator famous scene</a> </body> </html>
19th Jan 2018, 4:29 PM
Christophe Tenadet
Christophe Tenadet - avatar
+ 1
I have the same error message šŸ˜
19th Jan 2018, 6:12 PM
Christophe Tenadet
Christophe Tenadet - avatar
+ 1
"refuse to display(my link) in a frame because it set 'X-frame-options' to 'same origin'.
19th Jan 2018, 6:17 PM
Christophe Tenadet
Christophe Tenadet - avatar
+ 1
It's weird... I followed all of your instructions and it still not working
19th Jan 2018, 8:01 PM
Christophe Tenadet
Christophe Tenadet - avatar