在 iPhone 上设置 Http 服务器
我们可以在 iPhone 上设置 HTTP 服务器来进行音频流传输吗?我需要将我的 iphone 设置为 http 服务器,在其中我必须上传音频缓冲区并进行实时 http 流传输
Can we set up HTTP server on iPhone for audio streaming . I need to set up my iphone as a http server where i have to upload the audio buffer and do the live http streaming
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于 Apple 的 HTTP Live Streaming 基于静态文件,因此您可以使用 HTTP 服务器。至少有几个:cocoahttpserver、CocoaHTTPServer,您可以阅读如何做。
或者您可以使用套接字编程和 bonjour 对整个事情进行编程,以便客户端可以找到彼此。 Apple 有一个示例项目,可以在我不记得名字的 iPhone 之间发送图片。 :P 您可以在 网络编程:第 7 章 - iPhone 中阅读更多相关信息SDK应用开发
Socket编程接近于C,并且比UIKit需要多一些工作。
Since Apple's HTTP Live Streaming is based on static files, you can use a HTTP Server. There are at least a couple: cocoahttpserver, CocoaHTTPServer, and you can read how to do yours.
Or you can program the whole thing using socket programming and bonjour, so clients can find each other. Apple has an example project to send pictures between iphones whose name I don't remember. :P You can read more about it in Network Programming: Chapter 7 - iPhone SDK Application Development
Socket programming is close to C, and needs a bit more work than UIKit.
我已经在 iPad 上成功构建/配置/运行 lighttpd 并让它提供 HTTP 实时流服务。这非常简单......只需获取源代码,调整配置,制作,然后摆弄安装,它就可以工作了。
i have successfully built/config'd/run lighttpd on iPad and had it serve an HTTP Live Stream as well. it was pretty straight forward... just get the source, massage the config, make, then fiddle with the install and it just worked.