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,
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...
- http://www.youtube.com/v/0Q2aPi9ZEgs?rel=0
- http://www.youtube.com/v/0Q2aPi9ZEgs&rel=0
- http://www.youtube.com/watch?v=0Q2aPi9ZEgs&rel=0
<iframe width="480" height="390" src="http://www.youtube.com/embed/0Q2aPi9ZEgs?rel=0" frameborder="0" allowfullscreen></iframe>
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 :)
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#4 | media_youtube_rel-1179140-4.patch | 4.06 KB | dboulet |
#3 | media_youtube_rel-1179140-3.patch | 3.56 KB | dboulet |
Comments
Comment #1
bjlewis2 CreditAttribution: bjlewis2 commentedI'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!
Comment #2
goldlilys CreditAttribution: goldlilys commentedSubscribing, would be useful to have modestbranding=1&rel=0 on embed code
Comment #3
dboulet CreditAttribution: dboulet commentedHow about adding it as a setting for the formatter?
Comment #4
dboulet CreditAttribution: dboulet commentedSmall correction.
Comment #5
rhazor CreditAttribution: rhazor commented+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.
Comment #6
dboulet CreditAttribution: dboulet commentedHi rhazor, the patch should actually work. Maybe try clearing your cache and see if that fixes it.
Comment #7
rhazor CreditAttribution: rhazor commentedAhh, my bad dboulet, it all works now. I patched the latest dev version. Thank you!
Comment #8
tom friedhof CreditAttribution: tom friedhof commentedThis 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!
Comment #9
aaron CreditAttribution: aaron commentedAwesome, thanks I got that committed.
Comment #10
ZuluWarrior CreditAttribution: ZuluWarrior commentedJust 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!
Thanks!
Comment #12
akolahi CreditAttribution: akolahi commentedI 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.
Comment #13
akolahi CreditAttribution: akolahi commentedAh, 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
Comment #14
Jhover-1 CreditAttribution: Jhover-1 commentedThe product works great, thanks for the support.
Comment #15
bjlewis2 CreditAttribution: bjlewis2 commentedComment #16
tlangston CreditAttribution: tlangston commentedI 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?
Comment #17
SmokinX CreditAttribution: SmokinX commentedI'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