Embed Video - disable related youtube videos
shecter
Joined: 2006-12-30
Posts: 130 |
Posted: Sun, 2012-08-12 05:22 |
Hi, I've installed and am successfully using the Embed Video module (http://codex.gallery2.org/Gallery3:Modules:embed_videos). Does anyone know how to disable the related youtube videos that appear as thumbnails when the main video is done playing? I've done some research and found that when embeddeing youtube videos, one should be able to add "&rel=0" to the end of the video URL. I've done this, but the related videos still show, and when I edit the video, the "&rel=0" part of the URL is missing. See this screen capture: http://screencast.com/t/VjA7QDwd -Marc |
|
Posts: 27300
I have never been able to get that module to work so just looking at the code this might work:
Controller/embeded_videos.php
$embedded_video->embed_code = '<iframe class="youtube-player" type="text/html" width="'. $maxwidth .'" height="'. $maxheight .'" src="http://www.youtube.com/embed/' . $video_id . '" frameborder="0"></iframe>';
to
$embedded_video->embed_code = '<iframe class="youtube-player" type="text/html" width="'. $maxwidth .'" height="'. $maxheight .'" src="http://www.youtube.com/embed/' . $video_id . '&rel=0" frameborder="0"></iframe>';
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 130
that's great. totally works, except it's a "?" and not a "&" so it should be "?rel=0" my mistake.
Posts: 27300
Updated the docs with that bit of info.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team