How to prevent 'suggested videos' after YouTube video finishes

scanlan's picture
scanlan
Sat, 04/12/2014 - 19:15
#1
How to prevent 'suggested videos' after YouTube video finishes

With a YouTube link, you might already know, by adding "?rel=0" (without the quotes) to the end, you can prevent it from automatically listing suggested videos.
So if you change:
https://www.youtube.com/watch?v=kLQOxEr5U_s
to
https://www.youtube.com/watch?v=kLQOxEr5U_s?rel=0
suggested videos won't be listed after the video finishes.

I can't get it to work with the video in a slide of Mega SLider.
Is the a special trick to it?

Thanks.
Liam

cindy's picture
cindy
Tue, 04/15/2014 - 03:47

Hi,
Firstly, thanks for your concern in our product and sorry for replying late
We checked with a video in Mega Slider and every worked fine.
If you still confront this kind of problem, please give us your site as well as admin account via [email protected] to check and fix it
Regards,

scanlan's picture
scanlan
Tue, 05/13/2014 - 13:06

Thanks, Cindy, for the email help.

For others reading this thread, the Mega Slider does not currently support suppression of related videos at the end of the video play with Youtube.

So, I signed up with Vimeo, uploaded my videos to there.
I do have control now over what happens at the end of the video, and have a related question:

the way the Mega Slider works is to popup a video window. Is there a to simply play it as an embedded video, and not a popup? (When it pops up, the user currently has to exit out of the video, before moving to another slide).

Thanks.
Liam

elcochran's picture
elcochran
Mon, 08/18/2014 - 20:37

Hi Scanlan,
It looks like you never received an answer to this questions. I'd also like to know the answer to this too. Unfortunately, it seems you can only add text frames, video's and images. Hopefully MD can shed some light on this.
E.

cindy's picture
cindy
Mon, 08/18/2014 - 23:27

Hi,
Our MD Slider currently only supports pop-up video.
About suppression of related videos at the end of playing video, Elcochran, just please try the way Scanlan did (upload video to Vimeo)

scanlan's picture
scanlan
Tue, 08/19/2014 - 00:34

Actually, I abandoned the MD Slider in favor of a different solution entirely.
I think you need to round out the functionality of MD Slider. It's pretty sophisticated, but just needs some refinement, in my humble opinion.
Thanks.
Liam

elcochran's picture
elcochran
Mon, 08/18/2014 - 23:30

This was from Scalan and not answered:

the way the Mega Slider works is to popup a video window. Is there a to simply play it as an embedded video, and not a popup? (When it pops up, the user currently has to exit out of the video, before moving to another slide).

Can you please answer it?

cindy's picture
cindy
Tue, 08/19/2014 - 00:34

Hi,
As I said above, currently MD Slider only supports pop-up video, which means you still have to close the video to move to next slide.

Regards,

printscreen's picture
printscreen
Wed, 03/16/2016 - 08:35

You can change that in sites/all/modules/md_slider/includes/md_slider.utils.inc on line 256

change return "https://www.youtube.com/embed/{$video_id};

to return "https://www.youtube.com/embed/{$video_id}?rel=0";

like this:

<?php

function md_slider_generate_video_embeded_url($video_id) {
    if (strlen($video_id) == 11) {
        # Youtube video
        return "https://www.youtube.com/embed/{$video_id}?rel=0";
    } else {
        # Vimeo video
        return "https://player.vimeo.com/video/{$video_id}";
    }
}

?>

cindy's picture
cindy
Thu, 03/17/2016 - 22:49

Hi Printscreen,

Thank you very much for your feedback

Our latest version now support 3 modes of playing video within slide already: Inline, full and pop up. You can choose inline option to not have to close video to move to the next slide

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.