0

In the v4l2loopback program, the card_label parameter places a label on each created camera, and this is identified in Chrome / Chromium, as shown.

enter image description here

But the output of the javascript command to list devices, does not show this information, I expected it to be in label, as picture below:

enter image description here

Is there another way to identify the correct device?

Curiously in Electron (where I actually intend to use this code), it works as expected, but should not the Renderer behave as it does in the browser?

rogeriojlle
  • 1,046
  • 1
  • 11
  • 19

1 Answers1

0

I found the reason, it is because of the default behavior of Electron, where anything that is not expressly prohibited, is allowed, in the browser the label is only displayed after accepting which device will be used to capture the media. And the call 'enumerateDevices ()' does not trigger the routine to select devices

rogeriojlle
  • 1,046
  • 1
  • 11
  • 19