9#import <Foundation/Foundation.h>
10#import <AVFoundation/AVFoundation.h>
14typedef int (^source_handler_t)(NSArray* data,
double pts);
15typedef int (^source_param_handler_t)(NSData* params);
31@property FileWriter *writer;
33@property BOOL adaptiveBitRate;
38@property AVCaptureVideoDataOutput *
output;
59- (void) encodeWithBlock:(source_handler_t) block onParams: (source_param_handler_t) paramsHandler;
64-(void)attatchRecorder:(FileWriter*)fileWriter;
66-(void)detatchRecorder;
85-(void)configureSession:(AVCaptureSession*)session;
94-(void)releaseSession:(AVCaptureSession*)session;
The video source provides all video frames to the encoder for transmission over the socket.
Definition: R5VideoSource.h:24
int width
Desired width of the video source (subject to hardware)
Definition: R5VideoSource.h:24
int height
Desired height of the video source (subject to hardware)
Definition: R5VideoSource.h:25
NSDictionary * getSourceProperties()
AVCaptureVideoDataOutput * output
Output path for the encoded data.
Definition: R5VideoSource.h:38
int fps
Frame rate to record at.
Definition: R5VideoSource.h:29
int orientation
Orientation of presentation.
Definition: R5VideoSource.h:27
AVEncoder * encoder
Hardware encoder set by the VideoSource. Pass frames to the encoder to continue to socket.
Definition: R5VideoSource.h:30
int bitrate
Bitrate in kbps of the video stream.
Definition: R5VideoSource.h:26