frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to stop related videos appearing after a embedded YouTube video ends

I get this question a lot and it is really simple:

Every embed is the same, except for the YouTube video URL. This will be something like:

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

All you need to do is add: ?rel=0 to the end of the URL.

So the embed code looks like this:

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

You can also...

scroll down when you click to embed the video. These options are hidden until you scroll.

When you scroll before getting the embed code, you can uncheck "show related videos"

Also a good idea to enable the privacy enhanced YouTube embed, which is also not enabled by default and hidden until you scroll.

Comments

  • edited June 2018

    To stop the related videos appearing after the embedded youtube video, the user needs to modify by adding the rel=0 after the URL source. By doing this a user can stop the related videos to come after the embedded video.

  • Thanks. That is exactly what I said to do above.

Sign In or Register to comment.

Computer Talk Forum

| Computer and Internet Discussion
@ 2020 Computer Talk Forum, All rights reserved. Material Design is a design language developed by Google. Material Design makes more liberal use of grid-based layouts and responsive animations and transitions.
Powered by VanillaForums, Designed by ThemeDorks

Resources

Continue the discussion