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 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素