简体   繁体   English

.mp3音频是否足以用于iOS应用程序,或者您还需要.ogg?

[英]Is .mp3 audio sufficient for iOS apps or you need .ogg as well?

For an app built with Cordova, do I need both .ogg and .mp3 files in order the audio to run on iPhone and iPad? 对于使用Cordova构建的应用程序,我是否需要.ogg和.mp3文件才能在iPhone和iPad上运行音频?

The ex-developer working on the project said all audio files must be included in both formats as some phones can't play one of them. 该项目的前开发人员表示,所有音频文件都必须同时包含两种格式,因为某些手机无法播放其中一种格式。

I recently read that iOS even can't play .ogg. 我最近读到iOS甚至无法播放.ogg。

So is it possible that I need both files just for Android, but for iOS I am fine with .mp3 only? 所以有可能我只需要两个文件就可以用于Android,但是对于iOS我只适合.mp3吗?

You should be fine with mp3 only. 您只应使用mp3即可。 That's what I do here and I have no issues with neither Android and iOS. 这就是我在这里所做的,而Android和iOS都没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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