Вопрос

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