YouTube - How to stop unrelated suggested videos displaying at end


#1

Silverstripe Version 3.2

Question:

Hi there

I am new to SilverStripe (and not a dev!) but need help with my YouTube embeds. I want to disable unrelated videos displaying once the video has ended.

Is there a way to do this?

Any help much appreciated!

Thanks
Julia

// Include any relevant code. If you have a lot of code, link to a gist instead.

#2

I don’t think you can fully disable related videos anymore, but you can try adding ?rel=0 to the video URL when embedding it. That used to disable related videos, now I think it just limits related videos to videos from the same channel - so at least you shouldn’t see random ‘related’ YouTube content.


#3

Thanks for your reply Jono, very helpful. I did try ?rel=0, but didn’t have much luck - I’ll have another go though as maybe I didn’t do it correctly.

Thanks!
Julia