When adding a URL or embed code with the rel parameter (http://code.google.com/apis/youtube/player_parameters.html#rel) specified, the setting appears not to be retained. This happens regardless of the URL style used with media:YouTube...

It would be excellent to have support for rel=0 in the module. I'd love to be able to propose a solution, but I'm afraid I'm a bit of a newbie.

Suggestions most welcomed :)


Members fund testing for the Drupal project. Drupal Association Learn more


bjlewis2’s picture

I'd really like to be able to add videos to my site without having related videos as well! It's an educational site, so a lot of the "related" videos are not appropriate.

Adding the ability to use &rel=0 would be really useful!

goldlilys’s picture

Subscribing, would be useful to have modestbranding=1&rel=0 on embed code

dboulet’s picture

Status: Active » Needs review
3.56 KB

How about adding it as a setting for the formatter?

dboulet’s picture

Small correction.

rhazor’s picture

+1 subscribe

dboulet so your patch just adds the tick box under the settings nothing else? I mean, I didn't get it working, I still get related videos after video ends.

dboulet’s picture

Hi rhazor, the patch should actually work. Maybe try clearing your cache and see if that fixes it.

rhazor’s picture

Ahh, my bad dboulet, it all works now. I patched the latest dev version. Thank you!

tom friedhof’s picture

Version: 7.x-1.0-alpha5 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

This patch applied for me on the latest dev release with no errors, and the field formatter works great. This is a nice feature to add in to the module. Thanks!

aaron’s picture

Status: Reviewed & tested by the community » Fixed

Awesome, thanks I got that committed.

ZuluWarrior’s picture

Just a quick comment to say thanks for this!

Only just got the request from the client to not have related videos so this little patch is well appriciated and most timely!


Status: Fixed » Closed (fixed)

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

akolahi’s picture

I can't for the life of me see where this setting is set. Is it a setting in the field? I cant find it anywhere in my content type.

Thanks for any assistance.

akolahi’s picture

Ah, i think i found it.
It's under the 'admin/config/media/file-types/manage/video/file-display' for anyone else looking for the setting

Jhover’s picture

Category: feature » bug
Status: Closed (fixed) » Active

The product works great, thanks for the support.

bjlewis2’s picture

Category: bug » feature
Status: Active » Closed (fixed)
tlangston’s picture

Issue summary: View changes

I don't understand why this didn't make it into the latest code. It seems pretty important to me. I cannot apply the given patch 4 because the file structure of the module has changed. Looked at 3 but the theme.inc has changed completely so I'm not sure how to apply it. Any ideas?

SmokinX’s picture

I'm using OpenOutreach and edited /profiles/openoutreach/modules/contrib/media_youtube/includes/media_youtube.variables.inc
It has some variables and I simply changed the strange TRUE default to FALSE: 'rel' => FALSE,

#openoutreach #contrib #media_youtube