简体   繁体   中英

How to play mp4 Audio files in swift?

I have some Audio files in mp4 format - which I used thinking this would be the best format for use on both iOS and Android devices. However they do not play with either AVAudioPlayer or AVPlayer. Is there another player that may handle it, or some way (in Swift) to covert them to mp3? Note this only an issue with mp4 audio only files - mp4 videos are fine.

AvPlayer可以播放mp4文件,但是如果将它们编码为AMR_NB,则不能播放,而需要将其编码为AAC。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM