Vimeo Froogaloop API not recognizing an event

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

    I think you're violating the Same Origin Policy. You'll notice here that where you're doing a lot of event handling, they are using special froogaloop API calls.

    I've never used froogaloop so I'm probably wrong. But that's my guess. The errors seem to suggest that the iframe is attempting to modify the URL in your browser, and that's now allowed by Same Origin. That's why the API wraps up window.postMessage for you.

提交回复
热议问题