Specifies the camera ID.
You can get a list of the available cameras by calling AgoraRTC.getCameras.
The video encoder configurations.
You can set the video encoder configurations in either of the following ways:
Whether 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.Since
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.