-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty device name #14
Comments
@Peter2121 What OS is this? The code indeed can't work if DeviceName() returns empty string in both. For Linux this code is used: Maybe it should be updated somehow to include more ways to query device name, because we need at least some string to show in UI and identify the device. If on your system some different code is used for querying the device name, then it should be updated. |
@john-preston |
@Peter2121 I just don't know which implementation is used in your case in the GetDeviceName call that I make from the lib_webrtc. So you need to find which one is used on FreeBSD and we can decide how to improve it, maybe. This is part of WebRTC camera detection code, so I wonder if it works in Chromium or anywhere else WebRTC is used for video recording. |
This library is used by telegram-desktop software.
There is a problem with some USB cameras that have no Manufacturer and Product set.
For example, I use a Logitech camera with the following data:
In webrtc_media_devices.cpp the GetVideoInputList() function returns an empty string for this device. The telegram-desktop is confused by this situation, so the camera cannot be used with this software.
Maybe, it would be better to check if both utfName and utfId are empty and in such case query for another parameter (SerialNumber or idVendor and idProduct) to avoid returning the empty string.
The text was updated successfully, but these errors were encountered: