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?
No, the iOS operating system, which both iPads and iPhones use, is unable to play RTMP streams. The problem is that HTML5 video tags do not support RTMP.
RTMP is a TCP-based protocol which maintains persistent connections and allows low-latency communication. To deliver streams smoothly and transmit as much information as possible, it splits streams into fragments, and their size is negotiated dynamically between the client and server.
RTMP has been essential for live-streaming over the years. It's also possible to live-stream on mobile devices via RTMP ingestion to HLS. RTMP ingest is the technology that transmits the video files from the encoder to the online video platform. It ensures that your video files are able to stream.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With