简体   繁体   English

流式广播iOS

[英]Streaming radio ios

Hello i'm searching for a good guide on how to implement a radio .mp3 stream in my app. 你好,我是寻求就如何落实在我的应用程序的无线MP3播放流很好的指导作用。 I have messed around with the matt gallagher tutorial "Streaming and playing an MP3 stream". 我已经把matt gallagher的教程“流和播放MP3流”弄乱了。 And had it working in ios4 (also with background playing) but then i wanted to use it in ios5 and had a lot of errors. 并使其在ios4中运行(也可以在后台播放),但是后来我想在ios5中使用它,并且出现很多错误。 (because of the ARC) I've heard that there are other ways to implement a .mp3 through the AVPlayer class. (由于ARC),我听说还有其他方法可以通过AVPlayer类实现.mp3。

Does someone know a simple implementation or example which i could use? 有人知道我可以使用的简单实现或示例吗?

If you're using non-arc code in an arc-enabled project you can specify which files are non-arc and everything will work as expected. 如果在启用了弧的项目中使用非弧代码,则可以指定哪些文件是非弧文件,并且一切都会按预期进行。 Just add the "-fno-objc-arc" flag to these files. 只需在这些文件中添加“ -fno-objc-arc”标志即可。

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

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