That's right, this is poorly documented, or I don't see it in the documentation. I don’t want any companion videos ( ?rel=0 ) using the JavaScript API.
$players[$vidIdPlaceholderRef] = new YT.Player('player_' + $vidIdPlaceholderRef, { height: '550', width: '840', videoId: $vidId });
- this is what I have.
I also tried:
$players[$vidIdPlaceholderRef] = new YT.Player('player_' + $vidIdPlaceholderRef, { height: '550', width: '840', videoId: $vidId + '?rel=0', rel : 0 });
bad luck. Does anyone know an option that can be added (tried rel : 0 with no luck)
javascript youtube-api
Phil Jackson Nov 16 2018-12-12T00: 00Z
source share