Cannot add a click event to a vimeoplayer object #994
Unanswered
snellcheeks
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a web page where I create a vimeo player object using the Vimeo player SDK (https://player.vimeo.com/api/player.js), following the examples and reference as in https://developer.vimeo.com/player/sdk/basics
My goal is that when a user clicks on a video, a new web page will be opened. But i cannot find any method to add an onclick / onmousedown event. For one, there's no official way using the SDK to add such method or event listener.
Going a different route, I tried adding an onclick and onmousedown event using javascript to the div holding the data-vimeo attributes, without succes. Also tried adding an onclick event to iframe element that the vimeo player sdk creates, but again without any success. Adding onmouseover and onmouseout events do work by the way,
Is there a way to do this?
Beta Was this translation helpful? Give feedback.
All reactions