Openvidu browser picking up front camera in iPhones, while for Android it is picking up back camera

Using Openvidu Browser version 2.17 (faced this issue on 2.16 also) for streaming app. I want back camera to be picked up by the device that is streaming. In case of Android phones and Windows when streaming is done using Chrome it works fine and streaming is done by Back camera, but in case of iOS Safari, it picks up front camera, and it is not allowing to switch the camera. I’m passing the videoSource property on openviduObject.initPublisher like mentioned below:

videoSource: currentCamera === 0 ? videoDevices[currentCamera].deviceId : videoDevices[videoDevices.length - 1].deviceId;

Here the value of currentCamera is 1.

Can you please help out why it is not working in iPhone the way it is working on Android and Windows.

Thank you in advance for the anticipated supprort.

  • George Paul