jrue / Vimeo-jQuery-API

A simple Vimeo API using standard jQuery event structures
MIT License
148 stars 27 forks source link

Both 'pause' and 'finish' event fire at the end of the video #23

Open marjanbajc opened 8 years ago

marjanbajc commented 8 years ago

Hi,

nice plugin, I really appreciate the work.

At the end of the video, both 'pause' and 'finish' event fire. Am I doing something wrong or is it some kind of VImeo bug?

        $(iframeId).on("pause", function(){
             _gaq.push(['_trackEvent', 'video', 'pause', videoId]);
         });

          $(iframeId).on("finish", function(){
             _gaq.push(['_trackEvent', 'video', 'finish', videoId]);
         });

Thank you.