i have an mp3 playing in my movie and i want a time to show in the media player. i want it to show like this: “current position time/song duration time”. it all works except that when the current position time gets to 31 (seconds) it adds one to the minute side. here’s my code:
I just applied your code to something in my code and it does do what you say, jumps at 30 or 31 seconds. here’s what to change:
posMinutes = int((mySound.position/1000)/60);
im not crazy about the Math.round function since I’m not familiar with what it specifically does with ints and floats.