Is there a way to determine the duration of an audio file

前端 未结 1 1700
余生分开走
余生分开走 2021-01-24 04:24

In android, what is the simplest way to determine the duration of an audio file (assume I have an URI of the file on the phone)?

Do I need to create and prepare an med

相关标签:
1条回答
  • 2021-01-24 05:11

    If MediaScanner is running on the phone then you can use MediaStore to get that information.

    MediaStore

    0 讨论(0)
提交回复
热议问题