Red5Pro IOS Client SDK

 10.0.0
Core SDK for IOS
R5Camera Class Reference

R5Camera encapsulates an AVCaptureDevice and provides video data to the R5Stream for publishing. More...

#import <R5Camera.h>

Inherits R5VideoSource.

Instance Methods

(id) - initWithDevice:andBitRate:
 
- Instance Methods inherited from R5VideoSource
(void) - startVideoCapture
 
(void) - stopVideoCapture
 
(void) - encodeWithBlock:onParams:
 
(void) - attatchRecorder:
 
(void) - detatchRecorder
 
(NSDictionary *) - getSourceProperties
 
(void) - configureSession:
 
(void) - releaseSession:
 
(void) - updateEncoder
 

Properties

CMSampleBufferRef currentSampleBuffer
 
AVCaptureDevice * device
 
- Properties inherited from R5VideoSource
int width
 Desired width of the video source (subject to hardware)
 
int height
 Desired height of the video source (subject to hardware)
 
int bitrate
 Bitrate in kbps of the video stream.
 
int orientation
 Orientation of presentation. More...
 
int fps
 Frame rate to record at.
 
AVEncoder * encoder
 Hardware encoder set by the VideoSource. Pass frames to the encoder to continue to socket.
 
FileWriter * writer
 
BOOL adaptiveBitRate
 
AVCaptureVideoDataOutput * output
 Output path for the encoded data.
 

Detailed Description

R5Camera encapsulates an AVCaptureDevice and provides video data to the R5Stream for publishing.

Method Documentation

◆ initWithDevice:andBitRate:

- (id) initWithDevice: (AVCaptureDevice *)  device
andBitRate: (int)  bitRate 

Initialize the camera with device and bitrate

Parameters
devicedevice to capture data from
bitRatebits in kbps to stream the data
Returns
a new R5Camera

The documentation for this class was generated from the following file: