brandly / angular-youtube-embed

:tv: Embed a YouTube player with a simple directive

Home Page:http://brandly.github.io/angular-youtube-embed/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work with ?rel=0

bersling opened this issue · comments

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.

put

$scope.playerVars = {
  rel: 0
}

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