streaming video FROM an iPhone
Solution 1:
You could divide your recording to separate files with a length of say, 10sec, then send them separately. If you use AVCaptureSession
's beginConfiguration
and commitConfiguration
methods to batch your output change you shouldn't drop any frames between the files. This has many advantages over frame by frame upload:
- The files can be directly used for HTTP live streaming without any server side processing.
- The gap between data transfers allow the antennas to sleep in between if the connection is fast enough, saving battery life.
- Conversely, if the connection is slow so upload is slower than recording, managing delayed upload of a set of files is much easier than a stream of bytes.