Configurations for the video track from the video captured by a camera. Set these configurations when calling AgoraRTC.createCameraVideoTrack.
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:
"480p_1"(resolution: 640 × 480, frame rate: 15 fps, bitrate: 500 Kbps).
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.
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.