-
Is it possible to receive a signal when user clicks on waveform canvas? For example, here I click on waveform canvas to change the location of black vertical line. So, the audio is replayed from my click location: Is there something like this: var ee = playlist.getEventEmitter();
ee.on("clickupdate", (time) => {
// User clicks on a location on waveform canvas equivalent to time.
// Do something with time.
}); |
Beta Was this translation helpful? Give feedback.
Answered by
Megidd
Dec 6, 2021
Replies: 1 comment 1 reply
-
Well, sorry. I guess I figured it out: ee.on("select", (start, end) => {
// `start` is actually the click location in seconds!
// Do something with `start`.
}); Is it the right approach? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
naomiaro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, sorry. I guess I figured it out:
Is it the right approach?