I am using this code to embed a playlist:
<iframe width="816" height="459"
src="https://www.youtube.com/embed/videoseries?list=xxx"
frameborder="0" allowfullscreen="">
To hide the related videos, normally I add ?rel=0
(that's in the case of a single video embed), but if I try it here:
<iframe width="816" height="459" src="https://www.youtube.com/embed/videoseries?list=PL4Zkb_7gMrOzZlVy7jIeCjwScavYp6ssm?rel=0"
frameborder="0" allowfullscreen="">
</iframe>
I get the "bad video" fuzzy YouTube screen (sorry, I don't know the technical term for this)!
There is no "hide related" option in the YouTube "SHOW MORE" settings for the playlist.
I passed one more parameter as
'?rel=0'
to stop related videos.That worked for me as-
Hope may work for others also.
&
instead of?
does not worked!As of September 25th 2018 there is no way to disable the related videos from displaying.
added emphasis
YouTube prevents hiding related videos using
rel=0
as of September 2018.However, you can work around this by using the YouTube Player API to show custom HTML instead of related videos.
Here is some example code that displays a custom "replay" button over the video once it completes, hiding the related videos:
For the most up-to-date code, including the minified version, description, demo, and instructions, view my blog post on the subject.
You have to use the '&' when adding more parameters to the url. Update the src field with following.