سؤال

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