Open whiteboxsolutions opened 2 months ago
Thanks for opening. I suspect it's a webview2 version issue. Is it possible to the version they have installed? You should be able to get it from navigator.userAgent
Checked that - user's useragent matches my dev machines:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0'
It's weird that it's intermittent - I'm wondering if it could be a windows defender sandboxing issue or something.
The application is being run as administrator as well
Description
Frontend javascript is unable to access mediaDevices via window.navigator.mediaDevices. Running the enumerateDevices() method returns a promise which fulfills with an empty list.
This issue is intermittent, and can't seem to be reproduced on my machine in either dev, debug nor release builds. It happens on end user machines randomly
To Reproduce
Intermittently:
window.navigator.mediaDevices.enumerateDevices()
in dev consoleExpected behaviour
enumerateDevices() method returns a promise which when fulfilled provides a list of video and audio devices and their IDs.
Screenshots
No response
Attempted Fixes
Restarting the application seems to fix things most of the time.
System Details
Additional context
No response