nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.3k stars 3.88k forks source link

navigator.mediaDevices.enumerateDevices() doesn't work in <webview> properly #7855

Open Sunvas opened 2 years ago

Sunvas commented 2 years ago

NWJS Version : 0.62.0 Operating System : Windows, Linux, macos

If you run navigator.mediaDevices.enumerateDevices() in <webview>...

Actual behavior

... you will get a weird list of devices without deviceIds and labels , but with groupIds . Example:

{deviceId: '', kind: 'audiooutput', label: '', groupId: '447f2ff6024675400b450bd42993f9cc0024514528a6f4b9873ffe6cefbc5c67'}

Expected behavior

If you run the same code inside window, you will get an adequate list of devices.

dragonballa commented 2 years ago

are you seeing the webview's id meaning will this be able to capture the contents of webview?

Sunvas commented 2 years ago

are you seeing the webview's id meaning will this be able to capture the contents of webview?

Webview's id? I'm trying to get my webcam work.

ftoledo commented 2 years ago

Will it be possible to obtain the listings of webcams to be able to select one?

Sunvas commented 2 years ago

Any updates?

vsme commented 9 months ago

Update on Bug Fix Status?