Hi, btw I really appreciate this module.

I know that you can hide related youtube videos using rel=0 in embed code. But this field takes the url - is there a way I can modify this module so that it always adds the rel=0, and still have the field take plain urls?
It would be awesome capability to have a checkbox to hide related youtube videos...
Or is there a way to do this?
Thanks!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jec006’s picture

Category: feature » support
Status: Active » Fixed

Hi,

If you go to the configuration for Video Styles at : admin/config/media/vef_video_styles/list/

And edit the style you use to display the video (configured in the display settings) under youtube there is an option to show or not show related videos.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

robertom’s picture

Version: 7.x-2.0-beta5 » 7.x-2.x-dev
Category: support » bug
Status: Closed (fixed) » Needs review
FileSize
410 bytes

Hi, sorry for my bad english

The generated embedded code have a &rel attribute, but don't add =0 when related videos is set to not show.

there are similar problem for &showinfo and other parameters that have a 0 value.

I would add a proposed patch

BD3’s picture

I can confirm that #3 fixed the issue for me.

philipz’s picture

Status: Needs review » Reviewed & tested by the community

Worked for me too, thanks!

serg2’s picture

Patch works for me too.
Opened a new issue as this this patch applies the correct settings provided in styles, not just 'Hiding related videos'.
I reference this post & patch.
Hope that was the correct thing to do, thanks.

mcunningham’s picture

Yes, the patch works. Please commit!

plopesc’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Patch committed af38cf8

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

saidbakr’s picture

I have the latest version of the module : 7.x-2.0-beta11 and I still have this issue, the related videos is still available after the end of the video. I tried to set a Google's project to get Google's YouTube api hoping it solve the issue but it does not solve the issue.

thomas.frobieter’s picture

Same problem here like #10 - any solutions?

Vincent_Jo’s picture

same here (#10)
... my customer is not amuzed to see "related videos" by his competitors at the end of the videos ;-)

remaye’s picture

Vincent_Jo’s picture

Confirming "dirty fix" from #13

thanks a lot!

capynet’s picture

Hide relatred videos is no more an option :(

https://developers.google.com/youtube/player_parameters (Find August 23, 2018):

Note: This is a deprecation announcement for the showinfo parameter. In addition, the behavior for the rel parameter is changing. Titles, channel information, and 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.

The behavior for the rel parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.

hargobind’s picture

If you've arrived here because you are using version 2.0-beta11 or below and the checkbox no longer works, then see #2580459: Not all video style options are being applied for the fix.

What @capynet said is true: you cannot completely hide "Related videos"; instead it will show videos from the same channel.