将音频从服务器流式传输到iPhone [英] Streaming audio from server to iPhone

查看:134
本文介绍了将音频从服务器流式传输到iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将我在服务器上的一些音频文件传输到我正在写的iPhone客户端应用程序。一些音频文件可以是相当大的大小,即使在压缩之后。我的问题是,是否有一个Cocoa框架,帮助我缓冲音频,所以它变得可用的用户,而其余的被放下管道?如果没有,任何人都可以指向正确的方向,以了解更多使用Objective-C / Cocoa实现这样的事情所需的技术?

I'm looking to stream some audio files I have on my server to an iPhone-client application I'm writing. Some of the audio files can be rather large in size, even after compression. My question is, is there a Cocoa framework that helps me with buffering the audio so it becomes available to the user while the rest is being brought down the pipes? If not, can anyone point me in the right direction to learn more about the technologies required to make such a thing happen using Objective-C/Cocoa?

缓冲和压缩来自服务器 - 客户端基础设施的音频将是理想的。

A definitive resource on buffering and compression of audio from a server<->client infrastructure would be ideal.

推荐答案

Brad提到我写信的帖子流音频通过HTTP。这是这个:串流播放MP3 < a>。我不是指那些链接到自己的博客的人,但它确实能解决你的问题。

Brad mentioned a post that I wrote to stream audio via HTTP. That was this one: Streaming and playing an MP3. I don't mean to be the person that links to his own blog but it does kind of address your question.

关于问题是多么难以解决,你会注意到我对该帖子做了4次更新(比我以前做过的任何其他事情),修复线程错误,内存泄漏和网络缓冲问题。有很多东西要准确正确。

In regards to how hard the problem is to solve, you'll notice I've made 4 updates to that post (way more than I've done for anything else), fixing threading errors, memory leaks and network buffering issues. There is a lot to get precisely correct.

这篇关于将音频从服务器流式传输到iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆