Vimeo Froogaloop API not recognizing an event

前端 未结 5 1777
生来不讨喜
生来不讨喜 2020-12-25 14:20

I\'m trying to recognize the onPlay, onPause, and onFinish event for vimeo using the froogaloop API. I\'ve tried everything I could imagine with this thing, and no luck.

5条回答
  •  臣服心动
    2020-12-25 14:28

    Having had a similar issue, with Froggaloop2 - it appears that if the video is cached, the ready event will fire only once (on the initial load). The solution is to retrieve the iframe with changing src, as:

    $(iframe).attr('src', $(iframe).attr('src') + '#timestamp='+(new Date()).getTime());
    

提交回复
热议问题