ios - 如何在 iOS 中播放在线 M4A/AAC 音频文件流?

标签 ios xcode

是否存在任何将 URL 作为输入并开始播放文件音频的库?

我尝试过 AudioStreamer,但遇到了 ARC 问题。我还尝试了其他几个库,但它们似乎不允许 AAC 文件(仅 mp3)。

最佳答案

<AVFoundation/AVAudioPlayer.h> AVPlayer 可以帮助你。 AVPlayer 队列播放文件的最佳解决方案。

关于ios - 如何在 iOS 中播放在线 M4A/AAC 音频文件流?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24227844/

相关文章:

ios - Xcode 11 : Changes in code not updated to app or breakpoint doesn't work

iphone - 当你使用Xcode制作iPhone应用程序时,如何更改应用程序的图标?

iphone - 通过SKStoreProductViewController进行礼品申请

ios - xcode 8,ios 10 beta 非常烦人的错误(?): "os version lower than deployment target"

ios - 故障动画 CAAnimation

ios - 正则表达式在 XCode 中查找注释代码

xcode - 可选类型 'string?' 的值未解包?

ios - 为什么我在 Storyboard (Xcode) 中所做的更改没有反射(reflect)在我的应用程序上?

ios - Swift Playgrounds 和 Playground 书籍

objective-c - 初始化与数据 : expected struct NSData * warning