简体   繁体   English

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

[英]How do I play a stream of an online M4A/AAC audio file in iOS?

Are there any libraries that exist that take in a URL as input, and starts playing the audio of the file? 是否存在将URL作为输入并开始播放文件音频的库?

I've tried AudioStreamer, but I run into ARC problems. 我已经尝试过AudioStreamer,但是遇到了ARC问题。 I've also tried a couple of other libraries, but they don't seem to allow AAC files (only mp3). 我还尝试了其他两个库,但它们似乎不允许AAC文件(仅mp3)。

<AVFoundation/AVAudioPlayer.h> and AVPlayer can help you. <AVFoundation/AVAudioPlayer.h>和AVPlayer可以为您提供帮助。 AVPlayer the best solution for playing file in queue. AVPlayer是在队列中播放文件的最佳解决方案。

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

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