RtccDefaultVideoSource Class Reference
This is a default implementation of a video source for the RtccCall videoOut. This source allows the application to switch between
The application must set this instance as the videoOut.source in order for video capture to work.
Warning: Do not subclass this class. Implements the RtccVideoSource protocol to create your own source.
The source delegate should be set by the application in order to be informed of the size of the video that is captured and resize the render view that is used.
@property (nonatomic, weak) id<RtccDefaultVideoSourceDelegate> delegate
This property must be set by application. Upon setting it, a subview is added that contains the camera render layer.
This subview is added with contraints to keep it the same size as the renderView.
The layer content is set to fit the subview. As such, it will always preserve the video ratio of the capture.
@property (nonatomic, weak) UIView *renderView
This property informs the application about the camera’s orientation (videoSource_front or videoSource_back) that is set. Upon camera instantiation, the value is set to videoSource_front.
@property (nonatomic) videoSource_t currentCamera