Audio position

Hi, how can i get playback actual position? Eg. i want do clock like positon / length (eg. 3:12 / 4.46), but i don’t see any function which returns me actual playback position.

Hmm… I’m not sure if there is such a thing either.

One trick that you could do is to store the system.getTimer() ( https://docs.coronalabs.com/api/library/system/getTimer.html ) when you start the playback. You can then use that to calculate the time that has passed since the playback began by calculating the difference between the original and current time.

Hmm… I’m not sure if there is such a thing either.

One trick that you could do is to store the system.getTimer() ( https://docs.coronalabs.com/api/library/system/getTimer.html ) when you start the playback. You can then use that to calculate the time that has passed since the playback began by calculating the difference between the original and current time.