简体   繁体   中英

Choose which audio file format to use between Android and IOS?

In my app,I want to make sure user can record his sound and sent to other user to listen to it. In android platform I choose .amr ,it's not too big and easy to record.

Then I realized I should make sure my ios user can chat with my android user,but .amr seems not support in ios(after v4.3).

So is there a certain audio file format that can use between android and ios platform ? Or I have to let my Server to do the Transcoding job?

Both android and iOS should be able to handle mp3 files.

You can encode to mp3 on the device using various open source projects (could be a combination of steps).

I would personally go for a server-side encoding/conversion, because too many things can go wrong (especially on all the various Android versions and devices)

At last we use amr. Ios client do the decode job.

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