Description
Can’t switch preview video when using navigator.mediaDevices.getUserMedia before.
Browser Console Error
Which Web Video SDK version?
video-sdk version: 1.11.6
Video SDK Code Snippets
I have an issue: Camera will be stoped when screen device is locked so my solution is using navigator.mediaDevices.getUserMedia so that we got another problem that can’t switch preview camera
switch preview camera func:
when we start preview video, we also create video dom :
base on this website:
My question is:
- I need your help to fix this problem.
- If we can’t use navigator.mediaDevices.getUserMedia to solve my issue above so if is there any solution for this ?.
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Preview screen
- Switch camera
Screenshots
Troubleshooting Routes
The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on Zoom · GitHub).
Device (please complete the following information):
- Device: Mac
- OS: Ventura 13.3.1
- Browser: Chrome
- Browser: Version 126.0.6478.183 (Official Build) (arm64)
other
comment line 773 → 778 will not get error.
Hope see your answer soon.
Thanks