【问题标题】:Calculate the time gone and left while playing an audio file计算播放音频文件的时间
【发布时间】:2013-10-05 05:16:22
【问题描述】:

我怎样才能知道我的MediaPlayerms播放音乐的时间(秒)

我想分割单个音频文件以确定持续时间。

【问题讨论】:

    标签: android audio media-player duration


    【解决方案1】:

    您可以使用 MediaPlayer 的 getCurrentDuration() 方法。参考Link

    【讨论】:

      【解决方案2】:

      您可以在这里使用answer 中的类似内容,here 也提供了一个很好的解决方案。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2010-11-08
        • 1970-01-01
        • 2014-12-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多