vime icon indicating copy to clipboard operation
vime copied to clipboard

Hiding the 'more videos' in youtube?

Open wplit opened this issue 4 years ago • 6 comments

I'm unsure if this is out of scope for what Vime is aiming for here, but having an option to remove the 'more videos' like we would if we were embedding manually would be great. I know Youtube keeps changing the rules and making this more difficult to do.

wplit avatar Oct 01 '20 23:10 wplit

I don't think there's an option to remove more videos anymore? I know it sucks and I tried a lot but couldn't remove it.

https://developers.google.com/youtube/player_parameters#rel

mihar-22 avatar Oct 02 '20 00:10 mihar-22

ref - https://www.maxlaumeister.com/articles/hide-related-videos-in-youtube-embeds/

wplit avatar Oct 02 '20 00:10 wplit

Okay I think we can have an option like hideMoreVideos on vime-youtube, and it'll place the poster over the video at the end. I'm not too sure about the black box when you pause feels odd, maybe some other idea to block the more videos popup.

mihar-22 avatar Oct 02 '20 00:10 mihar-22

I think the option to either use the poster image or cover the entire thing with a blank coloured box would be very useful. It's not the perfect solution, but it's so much better than those videos being visible.

wplit avatar Oct 02 '20 00:10 wplit

Hi, it looks like this is still an issue. When using the <Embed> object in Svelte, I can pass params={{rel: 0}} and it hides the black video bar when pausing and the videos at the end properly. I can't seem to pass params to the <Youtube> object though, it's not a property.

mathg avatar May 26 '23 17:05 mathg

I also needed this functionality so I added a PR to expose params to youtube to fix this issue: https://github.com/vime-js/vime/pull/383

corysmc avatar Jul 24 '24 14:07 corysmc