Turning off related videos.
masscreation opened this issue · comments
I've tried to concatenate video-id with a variable that contains the string "?rel=0" so as to turn off the related videos (e.g. "http://youtube.com/embed/NVl_IFepdLQ?rel=0") , but "?enablejsapi=1&origin=http%3A%2F%2Flocalhost%3A3000" gets appended to the url causing the related videos to fire. Is there another way to turn off the related videos?
hey! instead of adding rel=0
to the URL, use player parameters with something like
$scope.playerVars = {
rel: 0
};
here's a full list of available parameters
let me know if you get it working! 🌟
Works perfectly! Thank you! I tried it before, but forgot to add
player-vars="playerVars"back into my html.