Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Related Videos #5

Open
pvanatta opened this issue Jun 3, 2016 · 2 comments
Open

New Feature: Related Videos #5

pvanatta opened this issue Jun 3, 2016 · 2 comments

Comments

@pvanatta
Copy link

pvanatta commented Jun 3, 2016

First off, I really like this plugin for Piwigo! It's super helpful.

When using YouTube, it says to not use embedded code for YouTube. But when you just use YouTube directly, while it works fine, after my video is finished playing YouTube automatically shows the user related videos. I want users of my site to watch videos I post but I don't really want them to then keep browsing YouTube by following the suggested related videos.

I did try using embed code for YouTube (even though the plugin says not to do so). As with the embed code you can pass one additional parameter in the URL to suppress related videos. Instead of:

http://www.youtube.com/embed/z8GHf-aELjY

you add "?rel=0" to the end of the URL to suppress related videos:

http://www.youtube.com/embed/z8GHf-aELjY?rel=0

This does seem to work okay with the plugin incidentally even though the plugin warns you not to use embedded code for YouTube, but then the thumbnail picture for my videos is missing. I have to create a thumbnail manually and attach it to the video in Piwigo.

Is there any way to add the suppression of related videos when using YouTube directly?

@mistic100
Copy link
Member

You can add the parameter in this file https://github.com/mistic100/Piwigo-Embedded-Videos/blob/master/template/video_youtube.tpl just after {$GVIDEO.autoplay}

Perhaps one day it will be configurable.

@pvanatta
Copy link
Author

pvanatta commented Jun 3, 2016

Oh wow, you're fast. Thank you. That should work fine as all my videos would be setup that way so I can just hardcode that additional setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants