After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789809 - API: new API to retrieve the device unique ID
API: new API to retrieve the device unique ID
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-11-02 09:37 UTC by Philippe Normand
Modified: 2018-11-03 12:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philippe Normand 2017-11-02 09:37:29 UTC
Ideally the ID would be a string, like a UUID or something similar. Opinions?

This would be needed in WebKit, for the "RealtimeMediaSourceCenter" and its friend the "CaptureDeviceManager", responsible for probing audio/video capture devices.
Comment 1 Philippe Normand 2017-11-02 15:27:56 UTC
Another option is to add it to the device properties GstStructure, so no new API would be needed.
Comment 2 Tim-Philipp Müller 2017-11-02 15:58:14 UTC
What would this look like in practice? Aren't there already suitable things in the extra properties? Is the goal to move the knowledge of what might be a suitably unique identifier into the device provider?
Comment 3 Philippe Normand 2017-11-02 16:38:53 UTC
Well, it's true that depending on the OS it's possible to find the ID in properties. In the current v4l2 device provider a device.serial property is present, that could be used as unique ID I suppose :)

I'm not sure about other platforms, but I think it would be interesting to formalize the way devices are identified across all platforms instead of having each device provider potentially storing the unique identifier in different properties.
Comment 4 Philippe Normand 2017-11-14 10:54:31 UTC
Additionally it would be nice to have a gst_device_monitor_get_device_with_id().

In WebKit the UI process needs to have a list of devices so the user can choose which one to use but the Web process also needs to access devices, so we have duplicate work unless we can run a single device monitor in the web process and pass device IDs around using IPC.
Comment 5 GStreamer system administrator 2018-11-03 12:42:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/250.