moq-video: PipeWire libcamera cameras report their kind

Aperta
#10,333 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Find the PipeWire camera listing code and its existing query timeout, then read how it obtains node info and handles V4L2 camera kinds. Bind libcamera nodes and inspect their full info for api.libcamera.location, mapping front and back to BuiltIn and external to External. Add a unit test over the props for these mappings and confirm the lookup completes within the existing timeout.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Camera::kind (from https://github.com/moq-dev/moq/pull/10316) is set for PipeWire camera nodes only when they front a V4L2 device: the node takes the kind of the V4L2 camera at its api.v4l2.path. libcamera nodes have no V4L2 camera to borrow from, so their kind stays None.

libcamera does say where a camera is: its PipeWire node carries api.libcamera.location (front, back, or external). That property arrives in the node's full info, not the registry global's properties the listing reads today. So the fix is to bind each libcamera node and wait for its info, within the listing's existing query timeout.

Map front/back to BuiltIn and external to External. Cover the mapping with a unit test over the props.

(Written by Claude Opus 5.5)

Lingua principale
Rust
Stelle
1.6k
Fork
251
Merge medio
10h 10m
PR unite (30g)
832

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di moq-dev/moq

Tutte le issue di moq-dev/moq

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.