Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 852
theDuncs Avatar asked Feb 09 '12 10:02

theDuncs


People also ask

Can I record a livestream event on my iPhone?

The only way to save live streaming video is to record it with a recorder app. You can then share it with your friends, or save it for later watching. There are many tools that offer video screen capture for iPhone or iPad.


1 Answers

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.

like image 140
AranyiA Avatar answered Sep 27 '22 18:09

AranyiA