Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

iphone

rtmp

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?

like image 431
Jim Geurts Avatar asked Feb 02 '10 14:02

Jim Geurts


People also ask

Does iOS support 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.

What format is 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.

Is RTMP good for streaming?

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.


1 Answers

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.

like image 85
Dave Avatar answered Nov 15 '22 18:11

Dave