How can I find out the time (second) that my MediaPlayer played the music in ms

I want to segment a single audio file to determinate durations.

有帮助吗?

解决方案

You can use getCurrentDuration() method of MediaPlayer. Refer Link

其他提示

You may use something like in this answer on here and also a good solution is given here.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top