Camera Zoom Control in React Native

Hey there,

Is there any way to control the camera zoom using the Video SDK for React Native?

I looked at the docs, but could only find RemoteCameraControl, and I am guessing this wouldn’t work for controlling the users own camera. I want to enable users to pinch to zoom, like in the official Zoom app.

Any help is much appreciated.

1 Like

hi @noahviktorschenk ,

There are no commands to zoom the camera. There is no command or code to zoom a camera in the Zoom App.

You may find that some camera apps will allow remote control, but that is camera-related.

There is nothing in Zoom and no standard for Zoom to add to link in with.
Please note that there is a new Zoom autoframe option, which undoes what I say in a way, but there is no API related to that

All the best

John

Hey @expertswho,

Oh, okay, Is there also no way to Zoom the video feed before it gets sent to Zoom as the Expo Camera has a Zoom option: Camera - Expo Documentation?

hi @noahviktorschenk ,

I understand. You would have to grab the Camera directly, play with it and then make a virtual camera to drop into Zoom. Not very elegant. But why is there not a react library for this sort of thing? (that I have yet found)

Note that you can change the position and size of the camera display within the ‘layout’. Your camera does not need to take the whole canvas.

John