moq-video: PipeWire libcamera cameras report their kind

Open
#10,333 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

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.

Written by the indexing model from the issue text.

Description

quest

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)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.