moq-video: PipeWire libcamera cameras report their kind

Abierto
#10,333 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)

Lenguaje dominante
Rust
Estrellas
1.6k
Forks
251
Merge medio
10 h 10 min
PR fusionados (30 d)
832

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de moq-dev/moq

Todos los issues de moq-dev/moq

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.