How to get Sampling rate and frequency of music file (MP3) in android?

前端 未结 3 670
攒了一身酷
攒了一身酷 2020-12-05 11:50

I am developing audio player in android. So i want to add the details of the playing song i.e. Artist Name, Duration, Bit rate and sampling frequency. I can get Artist Name

3条回答
  •  甜味超标
    2020-12-05 12:03

    MediaMetadataRetriever offers METADATA_KEY_DURATION which you can divide with the file size for bitrate.

提交回复
热议问题