Description
- On iOS camera has weird ratio issue when first turned on vs second time turned on.
- Switch Camera on iOS web
zoomStream.switchCamera()
has issue where video screen turn black and even if you switch back it will remain black unless video camera was turned off and turned back on.
Which Web Video SDK version?
“@zoom/videosdk”: “^1.10.7”,
“@zoom/videosdk-ui-toolkit”: “^1.9.8”,
Video SDK Code Snippets
await zoomStream.switchCamera(nextCameraToSwitch).then((result) => {
console.info('%c switchCamera result', 'background-color: green;', result);
}).catch((error) => {
console.error('Error during switchCamera execution', error);
});
console.info(
'%cSwitching camera successful',
'background-color: green;',
nextCameraToSwitch
);
To Reproduce(If applicable)
Steps to reproduce the behavior:
In video-sdk web
2 issues
- Video size ratio issue.
- Switch camera blacking out issue.
(Camera video stream ratio issue reproduce)
1.Use iOS safari 17.4
2.Turning video on first time will have flat size video
3. turn off video
4. turn video back on video streaming content from camera size ratio will be horizontal (how you hold phone ) ratio rather than landscape ratio for camera.
After this no matter how you turn on or off it will always shows as (how you hold the phone camera view ratio)
(Camera switch from front to back of phone camera issue)
1.Use iOS safari 17.4
2. turn on video webcam (user facing - front)
3. switch camera to (‘environment’) = which is back.
4. about 50% on first time when switch happens screen is black and no matter how many time you switch it will just show black screen. unless camera is turned off and turned on again.
Troubleshooting Routes
I have already tried to debug using dev tool debug inspector mode on Safari to check if there is any error occurring during camera switching as well as camera activation (turning them on)
Device (please complete the following information):
- Device: iPhone 11 and iPhone 14
- OS: iOS 17.4.1
- Browser: Safari
- Browser Version: Safari 17.4