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.

Report a problem

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)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override var isCapturing: Boolean

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun startCapture()
Link copied to clipboard
open override fun stopCapture()