iOS - 播放 4.0 之前的 mp3

发布于 2024-12-23 05:10:40 字数 99 浏览 3 评论 0原文

在我的应用程序中,我使用 AVFoundation 框架(AVAudioPlayer)播放 .mp3 文件,但该框架仅存在于 4.0 或更高版本中; 4.0之前的mp3可以用什么播放?

Im my app I play .mp3 files with the AVFoundation Framework (AVAudioPlayer), but this framework only exists in 4.0 or later; what can I use to play an mp3 before 4.0?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

燃情 2024-12-30 05:10:41

我正在查看 Apple 的 AVAudioPlayer 文档,它在该页面的顶部写道:

可用性适用于 iOS 2.2 及更高版本。

我查看了我的一个较旧的(iOS 4 之前的)项目,看看我以前是如何播放声音文件的。它是 AudioToolbox 框架和 Apple 旧版 SpeakHere 示例代码

I'm looking at Apple's documentation for AVAudioPlayer and it says at the top of that page:

Availability Available in iOS 2.2 and later.

I looked in one of my older (pre iOS 4) projects to see how I used to play sound files. It was a combination of the AudioToolbox framework and some files from Apple's older SpeakHere sample code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文