Does the iphone sdk support playing an mp4 from rtmp stream?

限于喜欢 提交于 2019-12-20 18:43:23

问题


Does the iphone sdk support playing mp4 files from RTMP streams? I am looking to store the files in CloudFront (in a bucket marked to stream) and would like to have an iphone app be able to play them. Is this possible, or am I better off storing the files as mp3 on CloudFront and not enabling streaming via RTMP?


回答1:


No. The iOS SDK does not support the RTSP protocol. You may be allowed to include an implementation of RTSP into your app, but Apple is strongly pushing their HTTP streaming technique. Also: beware of this rule from section 9.4 of the developer guidelines:

Video streaming content over a cellular network longer than 10 minutes must use HTTP Live Streaming and include a baseline 64 kbps audio-only HTTP Live stream

I believe everyone is using Apple's HTTP Streaming technology. It is the supported and blessed approach.




回答2:


Please check the Wunder Radio application from iTunes. It is open source under LGPL license. The code is available from here - http://www.wunderradio.com/code.html




回答3:


Based on my research into a video app I did on iPod last month, iOS does not support streaming ANYTHING using RTMP. If I am mistaken, I would be thrilled to hear that.



来源:https://stackoverflow.com/questions/2184671/does-the-iphone-sdk-support-playing-an-mp4-from-rtmp-stream

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!