dongmacheng3222 2011-02-12 20:29
浏览 74
已采纳

如何为流式传输音乐的iPhone应用程序设计后端(服务器端)

Was reading this article http://cocoawithlove.com/2010/03/streaming-mp3aac-audio-again.html , wanted to know of how has this to be implemented on the server side, and is it as simple as just putting the file in the htdocs folder getting the URL to that file or does it have more stuff involved

  • 写回答

1条回答 默认 最新

  • douzhankui0758 2011-02-12 22:20
    关注

    It will work with a media document just sitting on a server.

    That being said, Apple really wants you to use HTTP Live Streaming instead of letting a file be progressively downloaded and streamed. Their docs state: 'iPhone and iPad apps that send large amounts of audio or video data over cellular networks are required to use HTTP Live Streaming.'

    Fortunately, HTTP Live Streaming is just a method of cutting up your file and Apple provides tools to do this. Then you just place the cut up file and a metafile on your server in htdocs.

    You could also look at something like Soundcloud. They have an iPhone streaming library on github to stream songs from their service.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试