Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!
Comment | File | Size | Author |
---|---|---|---|
#3 | video_embed_field-hiding_related_videos-1922656-3.patch | 410 bytes | robertom |
Comments
Comment #1
jec006 CreditAttribution: jec006 commentedHi,
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.
Comment #3
robertom CreditAttribution: robertom commentedHi, 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
Comment #4
BD3 CreditAttribution: BD3 commentedI can confirm that #3 fixed the issue for me.
Comment #5
philipz CreditAttribution: philipz commentedWorked for me too, thanks!
Comment #6
serg2 CreditAttribution: serg2 commentedPatch 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.
Comment #7
mcunningham CreditAttribution: mcunningham commentedYes, the patch works. Please commit!
Comment #8
plopescPatch committed af38cf8
Thank you!
Comment #10
saidbakr CreditAttribution: saidbakr commentedI 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.
Comment #11
thomas.frobieterSame problem here like #10 - any solutions?
Comment #12
Vincent_Jo CreditAttribution: Vincent_Jo commentedsame here (#10)
... my customer is not amuzed to see "related videos" by his competitors at the end of the videos ;-)
Comment #13
remaye CreditAttribution: remaye commentedI used a dirty fix here : https://www.drupal.org/node/2580459#comment-10661820
Comment #14
Vincent_Jo CreditAttribution: Vincent_Jo commentedConfirming "dirty fix" from #13
thanks a lot!
Comment #15
capynet CreditAttribution: capynet as a volunteer commentedHide relatred videos is no more an option :(
https://developers.google.com/youtube/player_parameters (Find August 23, 2018):
Comment #16
hargobindIf 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.