I need to get the data stream from an AVCaptureSession in a semi-live streaming type of way. In my experience with AVFoundation, I can only write the file to disk and then read it out.
Is there a way to capture the data as it comes through the stream to pipe out to a server?
Thanks!
You can get the raw data using
AVCaptureVideoDataOutputand/orAVCaptureAudioDataOutput.