brandly / angular-youtube-embed

:tv: Embed a YouTube player with a simple directive
http://brandly.github.io/angular-youtube-embed/
MIT License
508 stars 147 forks source link

Doesn't work with ?rel=0 #105

Closed bersling closed 8 years ago

bersling commented 8 years ago

For embedding youtube videos, a useful option is ?rel=0 at the end of the embed code. This prevents suggestions of other videos once the video is done playing. However, when I put a url containing ?rel=0, other videos are suggested anyways.

brandly commented 8 years ago

put

$scope.playerVars = {
  rel: 0
}

as a part of your player-vars. read more here :star: