pub async fn cameras() -> Result<Vec<Camera>, Error>Expand description
List the available cameras and the identifiers Source::Camera accepts.
On Linux, V4L2 lists only devices offering YUYV or MJPEG. With the pipewire
feature, PipeWire camera nodes come first, and a V4L2 device that a listed
node fronts is listed only as that node, since PipeWire shares the device
with other clients while a V4L2 open holds it exclusively. V4L2 devices no
node fronts remain visible. A session without PipeWire, or one whose daemon
does not answer, lists V4L2 alone. Inside a sandbox the PipeWire nodes come
through the camera portal, which may ask the user for camera access.