What conditions do we need to check before joining a video call

For joining a video call, FIrst I’m waiting for join() API to complete and after that I’m also waiting for video decode to be set to true,
even then also on starting video call sometimes I get error on mediaStream.switchCamera API as Cannot find cameraDeviceId in camera devices list.
because even at that moment mediaStream.getCameraList() returns an empty array.

Can you please suggest what conditions should we check before joining a video call?
as nothing related to it is mentioned in docs as well.

Hey @shoaib

Thanks for your feedback.

If you want to start video with a specific camera, use CaptureVideoOption parameter, set value of cameraId . The switchCamera is used in the scene where the video has already started and the camera needs to be switched.


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.