Optional
cameraSpecifies the camera ID.
You can get a list of the available cameras by calling [AgoraRTC.getCameras]getCameras.
Optional
encoderThe video encoder configurations.
You can set the video encoder configurations in either of the following ways:
"480p_1"
(resolution: 640 × 480, frame rate: 15 fps, bitrate: 500 Kbps).Optional
facingWhether to user the front camera or the rear camera.
You can use this parameter to choose between the front camera and the rear camera on a mobile device:
"user"
: The front camera."environment"
: The rear camera.Optional
optimizationSince
4.0.0
Transmission optimization mode. Whether to prioritize video quality or smoothness:
"detail"
: Prioritizes video quality."motion"
: Prioritizes video smoothness.Note: This method is only supported on Chrome.
Configurations for the video track from the video captured by a camera. Set these configurations when calling [AgoraRTC.createCameraVideoTrack]createCameraVideoTrack.