Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Youtube disable related videos

$
0
0

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.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>