Support » Fixing WordPress » Stopping YouTube embed related videos

  • alkpurusha

    (@alkpurusha)


    It seems the option to disable related videos for embedded YouTube videos in WordPress sites has been removed by Google last month. This means all embedded YouTube videos on my web site when they end will offer viewing options for other unrelated or competing videos at the end of my selected video. Does WordPress have a fix for this so related videos don’t show up?

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • alkpurusha

    (@alkpurusha)

    Thanks, but this how-to is out of date, Google has since disabled this option.

    It should still work.
    I just tried it with the following embed.

    <iframe width="560" height="315" src="https://www.youtube.com/embed/7uJLXIdvs40" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    I added &rel=0 to the end of the src= and it worked.
    <iframe width="560" height="315" src="https://www.youtube.com/embed/7uJLXIdvs40&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

    With further testing, I’ve found that it works inconsistently.
    I also did some further research for you. Apparently, unless it is a video you uploaded to youtube AND you have a youtube pro account there is no way to turn off the related videos when you embed it.

    Hope this helps.

    MarkRH

    (@markrh)

    Yeah, the rel=0 parameter now only loads related videos from the same channel the video came from: https://developers.google.com/youtube/player_parameters#rel

    alkpurusha

    (@alkpurusha)

    Thanks for your feedback. I’m kind of hoping the WordPress community comes up with a workaround for this. I looked around online and there are quite a few people upset with Google due to this.

    Hi. I’m an author of a YouTube plugin. I don’t think there’s much any of us, particularly in the WordPress community, can do. Some will use their own player but they’re still dependant on the video feed coming from YouTube – if that want to add related videos to it, there’s not really anything you can do.

    The alternative would be to, say, download any videos (copyright allowing) and then host yourself.

    alkpurusha

    (@alkpurusha)

    OK. Does anyone know why Google did this; there were some comments it was to make more money through more exposure. If so, it seems a bit trite considering how much money pours into their coffers each day. I guess it means in due course people will get fed up and shift to other platforms.

    I think this conversation is going off-course – this is a forum for discussion about WordPress. What Google’a motives were here, isn’t relevant.

    Here’s how it now works…

    • If the rel parameter is set to 1, it will show related videos. This is how it worked before.
    • If the rel parameter is set to 0, related videos will come from the same channel as the video that was just played. Before, this would turn off related videos in their entirety.

    This all came into place after September 25th.

    The only information Google has given is..

    Related videos are an important part of YouTube’s core user experience, and these changes help to make the YouTube viewing experience consistent across different platforms.

    Make of it what you will ¯\_(ツ)_/¯

    alkpurusha

    (@alkpurusha)

    Yes, this is good confirmation of what I read somewhere else. Thanks. I’d prefer to turn them off altogether though! It seems to be a common sentiment.

    what if, once a youtube video ends the player disapears by getting covered by a selfmade replay button?
    if youtube after becomming so big because of the publishers decides to force stupid things, then of course there is not much you can do to make them nice people again. but we can put a cover on the ugliness?

    like so… but built in wordpress
    https://www.maxlaumeister.com/blog/hide-related-videos-in-youtube-embeds/

    • This reply was modified 2 months, 2 weeks ago by  pedmog.

    A plugin would have to use the API rather than the standard player (as demonstrated in that post). However, I would be concerned that this could be again YouTube’s terms of usage.

    • This reply was modified 2 months, 2 weeks ago by  David Artiss.
Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.