I'm working with the iframe API and I want to embed some videos on a page, but I don't want to show related videos when a user pauses the video.
I know that after September 2018 Youtube removed the possibility of hiding related videos at the end or when pausing a video.
I know the parameter rel=0 now shows related videos from the same account of the video uploader.
I also know the question has been answered many times, but I've seen at least one site where that's not happening. Example: https://earth.stanford.edu/
To generate the iframe i'm using the following code:
function onYouTubeIframeAPIReady() {
player = new YT.Player('player1', {
height: '360',
width: '640',
videoId: 'lPVBrRd9wCo',
playerVars: {
rel: '0',
showinfo: '0',
loop: '1',
playlist: 'lPVBrRd9wCo',
autoplay: '1',
mute: '1',
iv_load_policy: '3',
'ytp-pause-overlay': '0'
},
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
}
Full code in https://codepen.io/romualdinho/pen/wZbxmj
Is there another way of hiding related videos on pause? How does Stanford do it? I tried the same way, same parameters, etc, but nothing. They even have been able to hide the title of the video.
Is there some kind of Google Account that allows that? (premium, nonprofit, educational, etc.)
Thank you!