YouTube has made some changes recently and one of them is to automatically play related video’s at the end of a video.
There has always been the show related videos at the end of the video and many webmasters seemed to ignore this which could result in a competitor’s video being shown on your own website. With the new changes competitor’s videos could be played automatically on your website advertising them, this needs to be avoided.
Standard YouTube Embed Code Creates this:-
Click near to the end of the video and see what happens when it finishes.
Stop YouTube Videos Showing Related Videos At The End:-
To do this you simply add the code to tell YouTube that you do not want to display any related videos.
So to show as an example:-
OLD YouTube Embed Code
<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/fKdCQzF4JZ0″ frameborder=”0″ allowfullscreen></iframe>
NEW YouTube Embed Code
<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/fKdCQzF4JZ0?rel=0” frameborder=”0″ allowfullscreen></iframe>
Other Embedding Options You Can Use
To make a YouTube video play automatically simply add “&autoplay=1” to the video’s embed code:
<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/fKdCQzF4JZ0?rel=0&autoplay=1“ frameborder=”0″ allowfullscreen></iframe>