NamPNQ / bower-videogular-youtube

Videogular `youtube` plugin repository for distribution on `bower`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When changing source, the next video starts playing automatically

hassankhan opened this issue · comments

Every time I change the sources property, the video automatically starts playing - is there any way to stop this from happening?

As far as I can tell, it's because the onSourceChange() method calls the initYoutubePlayer() method, which finally calls the loadVideoById() method on the YouTube player. Could this be changed to cueVideoById() instead?

Created pull request: #49

Looks good, I'll merge it, thank you! :)

Thanks :)