autosrc: Port to GstDeviceMonitor
Submitted by Nicolas Dufresne
The autoaudiosrc and audiovideosrc works a bit by chance as they assume no setup is requirement on the elements. As an example, if you have pipewire installed and activate the deamon, autovideosrc no longer works because then it picks pipewiresrc but with the default path, which is invalid.
Why I'm proposing to use GstDeviceMonitor internally is because that API provide a "configured" element to use, which would solve this kind of issue.. With that in place we'll be able to do fency fallback when a camera is unplugged. We could also expose the monitor, letting the application select a camera, handling the dynamic switch within the element itself.