Vimeo Froogaloop API not recognizing an event

前端 未结 5 1753
生来不讨喜
生来不讨喜 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:42

    After hours and hours of frustration... I have found the solution.

    Since I was using an ID on the iframe... apparently the vimeo API forces you to add the parameter to the URL you are fetching (player_id=iframe-id).

    So the iFrame should look like this:

    
    

    Special thanks to Drew Baker for pointing this out: http://vimeo.com/forums/topic:38114#comment_5043696

提交回复
热议问题