Web SDK Version: @zoom/videosdk": “^1.11.6 and @zoom/videosdk”: "^1.10.7
In the Zoom Video SDK Sample app, there is a route /preview which allows the user to test their camera and microphone before joining a session. When trying to use the preview from a mobile device (I am using iOS 15.5), even after setting the permissions, when trying to start the camera with await localVideo?.start(videoRef.current);, the error NotAllowedError is always thrown.
The preview screen uses a different approach to show the video (without using the mediaStream) as the user is not in an actual video call. Video works correctly on my mobile device in the actual video call (using mediaStream?.renderVideo). It is only in this preview screen that there is an issue.
I have copied the sample app to a live domain and also tried on my own mobile device and using an Xcode simulator, both having the same issue.
Just out of curiosity, I checked another Zoom sample app, ‘Zoom Telehealth Sample App,’ which uses the Zoom uitoolkit preview. It works as expected for mobile.
I have been using this app as a starting point for creating my own video application, so any help to get this working is appreciated.
Full error: Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.