brandly / angular-youtube-embed

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

Do not destroy and create new player on video change. #47

Closed qubird closed 9 years ago

qubird commented 9 years ago

Fix for https://github.com/brandly/angular-youtube-embed/issues/46. Instead of creating a new player, use the current one when it's already existing, loading the new video via YT method loadVideoById