ilinio
March 14, 2024, 8:47am
1
Hey guys. Im at my 4th certification project and now need to add a YouTube video for the first time. This is the html-code i put in:
<iframe width="560" height="315" id="video" src="https://www.youtube.com/watch?v=lky2P_aw6nc" frameborder="0" allowfullscreen></iframe>
I see the video-element, but it says: “www.youtube.com rejected the connection”
What can I do? Pls help
ilinio
March 14, 2024, 9:00am
2
No worries, i figured it out. For those wondering:
i had to insert ’ embed/ ’ behind .com/, so i just include the video and not the full youtube-page.
1 Like
ilinio
March 14, 2024, 9:06am
3
Again, there was a new error, which i figured out also. For those having the same struggle in the future, here is my solution:
if you have a link to youtube, lets say https://www.youtube.com/watch?v=lky2P_aw6nc&t=1s
make sure you remove ‘watch?v=’ and replace it with embed/. this will make sure you will only include the video, not the full youtube site on your page.
2 Likes
system
Closed
September 12, 2024, 9:06pm
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.