We are using CameraDeviceMonitor from Cheese to catch the event when webcam device is plugged or unplugged.
But it adds a burden to Flatpak building task. We don't use the whole Cheese app, but only a part of its library. While making deb package, it is just as easy as adding "gir1.2-cheese-3.0" to dependencies list, it is not the same when building Flatpak, we have to guide flatpak-builder to build Cheese from source.
So, it is better to implement "device monitor" from plain GStreamer and drop Cheese.
We are using
CameraDeviceMonitor
from Cheese to catch the event when webcam device is plugged or unplugged.But it adds a burden to Flatpak building task. We don't use the whole Cheese app, but only a part of its library. While making deb package, it is just as easy as adding "gir1.2-cheese-3.0" to dependencies list, it is not the same when building Flatpak, we have to guide flatpak-builder to build Cheese from source.
So, it is better to implement "device monitor" from plain GStreamer and drop Cheese.