Listeners #2130
Unanswered
alexcrisbrito
asked this question in
Q&A
Listeners
#2130
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can i add a listener for the "playing" event ?
I want to do a post to register that the user has already played the song when the currentTime is greater than 30 seconds, please help me !!!
//Here's what i did
plyr.on('playing', event => {
let instance = event.detail.plyr;
if (instance.currentTime >= 30.000000) postEvent("/play/add");
});
Beta Was this translation helpful? Give feedback.
All reactions