Camera Zoom on IOS with JavaScript (Safari)

Hello,

Is there anyway to zoom an Iphone's camera in javascript?
I have some javascript code (ZXing) on a webpage that I'm currently using for tracking things using QR and data matrix codes. To make scanning easier zooming would be a nice feature. Currently this works fine on android using the following method.

Code Block
const stream = yield navigator.mediaDevices.getUserMedia(constraints);
let videoTrack = stream.getVideoTracks()[0];
if (typeof videoTrack.getCapabilities !== 'undefined') {
                        let capabilities = videoTrack.getCapabilities();
if ('zoom' in capabilities) {
                            debug.innerText = capabilities.zoom.max;
                            videoTrack.applyConstraints({
                                advanced: [{
                                    zoom: capabilities.zoom.max
                                }]
                            })
                        }

This does not work on an iphone/IOS however. It seems like you do not have access to many of the camera's capabilities using the getCapabilites method. "zoom" and many other things will be returned as undefined. Does anyone know if there is another way to do this on an Iphone?

Currently I am having the same issue. Did find a solution for it?

Camera Zoom on IOS with JavaScript (Safari)
 
 
Q