Capture video on iOS device and live stream it to a server (or another mobile)

theDuncs picture theDuncs · Feb 9, 2012 · Viewed 11k times · Source

I want to be able to record footage using my iOS device and stream it directly to a server.

There's quite a few articles on S.O. that talk about this, but I'm not sure any have answered the question very well.

Should I be using HTTP Live Streaming, or is this just for sending data to an iPhone? Should I be using AVCaptureSession to grab the video (a segment at a time?), sending each segment to the server? Should I be using AVCaptureVideoDataOutput and ffmpeg for streaming?

I'm a little lost with all this, so any sample code or docs or links would be really appreciated.

Thanks for your help guys.

Duncan

Answer

AranyiA picture AranyiA · Feb 12, 2014

You have to choose a network protocol for that purpose and find an appropriate media server to receive and process the stream. If the RTMP format is ok for your project, check angl library which supports RTMP streaming from iOS. Currently it's compatible with iOS 6 and 7.