I'm using Youtube iframe API to add a video to my page, but it's showing related videos when the video is about to end even though i have set the 'rel' parameter to 0.
Here is the concerned part of my code:
function onYouTubeIframeAPIReady() { player = new YT.Player('homeplayer', { height: '1070', width: '1920', videoId: videoID, playerVars: {'controls': 0,'loop': 1,'modestbranding': 1,'rel': 0,'showinfo': 0,'playlist': videoID }, events: {'onReady': onPlayerReady } });}Maybe this question has already been asked but i can't find a solution as youtube api has been updated multiple times.