switchCamera(null) causes an error on Android and crashes on iOS

When executing
await _zoom.videoHelper.switchCamera(null);
the following error occurs:

PlatformException(ZoomVideoSDK_Error_Invalid_Parameter, deviceId is null or empty, null, null)

On Android, although an error occurs, the camera still switches.
On iOS, however, the app crashes.

Hey @tihimsm, sorry you’re facing this issue. I am able to reproduce this error, we’ll fix this in an upcoming release. In the meantime you can use this workaround:

final cameras = await zoom.videoHelper.getCameraList();
await zoom.videoHelper.switchCamera(cameras[0].deviceId);