NamPNQ / bower-videogular-youtube

Videogular `youtube` plugin repository for distribution on `bower`
MIT License
41 stars 32 forks source link

When changing source, the next video starts playing automatically #48

Closed hassankhan closed 8 years ago

hassankhan commented 8 years ago

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

hassankhan commented 8 years ago

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?

hassankhan commented 8 years ago

Created pull request: https://github.com/NamPNQ/bower-videogular-youtube/pull/49

Elecash commented 8 years ago

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

hassankhan commented 8 years ago

Thanks :)