You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I switch camera from Front to Back camera I have to call VideoCapturer.switchCamera() method two times. It occurred on our devices(Samsung Galaxy S9(rooted device), Samsung Galaxy A50s(non-rooted device)).
I have debugged the app and see that the camera doesn't switch for the first call VideoCapturer.switchCamera() method. But the cameraSource variable is updated.
Another thing: In the CameraCapturer.java, the onCameraSwitchDone() callback should be written as below.
I filed a bug and we will fix this in an upcoming release.
As for the switch camera behavior, I suspect the issue is related to the device containing more than 2 cameras (front and back). Unlike Camera2Capturer, CameraCapturer cycles through the cameras in order when calling switchCamera. As a result, in cases where a device contains for example 4 cameras, the switchCamera logic will just go to the next camera which is not guaranteed to be oriented on a different side of the device than the previous camera. Your workaround (calling switch camera multiple times) is recommended in these cases where CameraCapturer is required. However, if Camera2Capturer is supported on these devices, then you have the option to call switchCamera with a specific camera ID so you do not have to iterate through cameras.
Hello Twilio Team,
I'm using the Twilio Video version 5.9.0.
When I switch camera from Front to Back camera I have to call
VideoCapturer.switchCamera()method two times. It occurred on our devices(Samsung Galaxy S9(rooted device), Samsung Galaxy A50s(non-rooted device)).I have debugged the app and see that the camera doesn't switch for the first call

VideoCapturer.switchCamera()method. But thecameraSourcevariable is updated.Another thing: In the
CameraCapturer.java, theonCameraSwitchDone()callback should be written as below.Could you help me to check that!
Thanks,
John
The text was updated successfully, but these errors were encountered: