Hi
This blocks work well on mp3 less than 5 minutes, but when playing an mp3 of more than two hours, it does not work well, what is the problem?
which component are you using to play the mp3?
for both the Player and the Exo Player component there is the current position property as well as the duration property available…
or are you calculating something different?
https://docs.kodular.io/components/media/player/#current-position
Current Position¶
Number Read - Blocks
Returns the current position of the source file that is playing.
Player ▾.Current Position ▾
Duration
Number Read - Blocks
Returns the duration of the source file.
EDIT: I just have seen, you are using the Player component… but I do not understand your calculations…
Taifun
What is this about?
What do you want to achieve, what is the goal?
use the current position and duration properties…
you might want to follow this guide and adjust it to your needs
see especially
4) Implementation of Current Time And Total Duration Of Music.
Taifun