Closed ronky closed 9 years ago
I think it won't call the method in vg-complete.
Since the author did not register YouTube API's onStateChange
event (See YouTube IFrame API) and trigger the ended event when the YouTube video ends. The ended event is listened by API.mediaElement[0]
(See vg-controller.js). So the onComplete
API event handler of videogular (See vg-controller.js) won't be called and hence the method in vg-complete won't be called, either.
I've created a pull request https://github.com/NamPNQ/bower-videogular-youtube/pull/26
Thanks @DerekNien for pointing me in the right direction.
You're welcome. :) And thank you for your pull request.
Hi,
when youtube video is finished playing, is the method in vg-complete called?