Audio player - conditional play counter

Hi folks!
I’d like to know how many times an audio file has been played. But the count has to be triggered under the condition that the audio should have been played for at least x seconds.

Thanks!!

Nobody?
:confused:

what are you using to play the audio file?

1 Like

Hi

I am using the Custom audio player.

If you create your own play, pause, skip, and stop buttons using the element’s actions you can keep track of the elapsed time.
The plugin exposes the current time of the file.
You can do it in different ways. One can be to schedule a custom event x second after you play the audio to check if the current time is > that y seconds.
Another option is to create a workflow “when a condition is true” with the condition current time > x and player is playing.
The current time is a text formatted like 02:20 so you need to split it to get minutes and seconds.

I hope this can help.

1 Like

Excellent. Thanks a lot!!

great! :slight_smile:

1 Like