CameraVideoCapturer
class CameraVideoCapturer(constraints: WebRtcMedia.VideoTrackConstraints, videoCapturerDelegate: RTCVideoCapturerDelegateProtocol) : Capturer(source)
Camera video capturer that captures live video from device cameras.
This capturer automatically selects the camera device and format that most closely matches the provided video track constraints. It chooses the camera format with dimensions nearest to the requested width and height, adjusts frame rate to the maximum supported rate that doesn't exceed the requested target.
Parameters
constraints
Video track constraints specifying desired camera parameters
videoCapturerDelegate
Delegate for handling captured video frames
Constructors
Link copied to clipboard
constructor(constraints: WebRtcMedia.VideoTrackConstraints, videoCapturerDelegate: RTCVideoCapturerDelegateProtocol)