Skip to content

[feature] increment playcount with percentage of played #2693

Answered by katspaugh
haivala asked this question in Q&A
Discussion options

You must be logged in to vote

If we're talking about the MediaElement API, perhaps timeupdate would be worth trying.
I've briefly tested this in Chrome, and it seems to fire this event even when you're in another tab:

wavesurfer.backend.media.addEventListener('timeupdate', (e) => {
  console.log(e.timeStamp)
})

Can you test it in your app? If it works, we can expose this event in the wavesurfer API.

Replies: 16 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DanielJosephEgan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@haivala
Comment options

Comment options

You must be logged in to vote
4 replies
@haivala
Comment options

@haivala
Comment options

@katspaugh
Comment options

@haivala
Comment options

Answer selected by katspaugh
Comment options

You must be logged in to vote
2 replies
@katspaugh
Comment options

@haivala
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants
Converted from issue

This discussion was converted from issue #2623 on March 01, 2023 07:47.