NamPNQ / bower-videogular-youtube

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

Handle state changes of youtube player, fixes #28 #24 #30 #31

Closed keckelt closed 9 years ago

keckelt commented 9 years ago

Hi, I injected the VG_STATES Constant into your directive and added a onStateChange Listener. There the state will be set to either Play or Pause if the video's state changes, or the onComplete function of videogular is called if the video is over. I had a small discussion at videogular's github page on how to do this which you can find here: https://github.com/2fdevs/videogular/issues/180

This should fix the issues #24, #28 and #30.

Best, Klaus

NamPNQ commented 9 years ago

Tks you very much for PR :dancer: