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
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