YouTube embed - DISABLE "suggested videos," etc

Used to be, all you had to do to get rid of the “more videos” suggestions that come up after the video is over was to code “rel=0” on the embed code.

Doesn’t work any more.

Is there any hope for the x-theme-embed to add an option to control stuff like this? I’ve found a plugin that does it just fine, but as we all know, adding plugins always brings other potential problems, so I’d rather not if possible.

Thanks.

Hello @gljudson,

Thanks for writing in!

Please be advised that the X theme or Cornerstone elements do not have any control over the Youtube embed codes. Only Youtube controls the content inside the iframe code. The youtube embed code provides parameters to enable/disable some features of the video. The rel parameter was changed on or after September 25, 2018. You will not be able to disable related videos. Instead, if the rel parameter is set to 0, related videos will come from the same channel as the video that was just played.

For more details, please check that out here: https://developers.google.com/youtube/player_parameters#rel

Okay, thanks.

It actually turns out that there IS an additional parameter that can be added along with rel.

If you code this:

rel=0&enablejsapi=1

then AT BEST it shows NO related videos, and AT WORST it shows only videos from the same channel. I have yet to figure out why it’s not consistent, but … there it is.

Glad you’ve found the solution, @gljudson.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.