Hello everyone, I have a Youtube video inside a lightbox. I want prevent Youtube from showing related videos when pausing or at the end of the video. I found out about the $rel=0 parameter, but this doesn’t seem to work (it seems to be deprecated)
On the other hand, the Youtube widget has the option to hide the related videos, and it works.
The problem is, there’s no way to add a Youtube widget or a html embed inside a lightbox.
Do you have any suggestions? Should I create a custom lightbox from scratch?
View only link of a test page: https://preview.webflow.com/preview/vdx-staging?utm_medium=preview_link&utm_source=designer&utm_content=vdx-staging&preview=650c06b184c9567d8e2fe7587a96fb5c&pageId=62a9ecd4f70033f9f38e26cd&workflow=preview
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
We also have the same request.
@Dario and @bhinson
YouTube no longer directly supports suppressing the related videos list.
There are currently 3 modes of operation with YouTube embeds and the related videos list at the end;
- Default, which shows related videos from any channel YouTube chooses to
rel=0, which shows related videos only from the same channel as the video
- No related videos, which is done using
enablejsapi=1 and some JS+CSS. See here on Stack Overflow for code.
Any of those can be used if you’re using HTML Embeds and/or a 3rd party lightbox such as fancybox.
Inside of Webflow, the YouTube player has the rel=0 option exposed as a setting called “Limit related videos to channel.” @Dario for me, adding “Privacy mode” does not make the cards disappear.
In the Lightbox, you can also channel-limit videos by adding
&rel=0 to the end of the YouTube video URL before you paste it in.
If you really want to display all related videos ( same channel included ), you may be able to adapt Max Laumeister’s scripts here.