identify devices created via v4l2loopback in Chrome

Asked

Viewed 29 times

1

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

inserir a descrição da imagem aqui

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

inserir a descrição da imagem aqui

There’s another way to identify the right device?

Update:

In firefox, you also did not list the names under "label", so I believed it to be a standard behavior of browsers.

But then, by testing it on the Electron, where I intend to actually use it, it works properly... His "Renderer" process should not be equivalent to the browser?

1 answer

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.