Skip to content

privacy: stop counting screen captures as camera use - #3428

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
avesst:fix/privacy-camera-screen-capture
Sep 15, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
avesst:fix/privacy-camera-screen-capture

Conversation

@avesst

@avesst avesst commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Description

The privacy indicator shows the camera as active while OBS captures the screen, even when no camera is in use.

cameraActive counts any live Stream/Input/Video node as camera use. An app receiving a PipeWire screen cast creates exactly that node, so the screen capture was reported as the camera. These streams are tagged media.role = "Screen", and are now skipped. Streams from a real camera carry media.role = "Camera" and are still detected.

Type of change

  • Bug fix (non-breaking change that fixes an issue)

Related issues

Checklist

Apps capturing the screen through PipeWire, such as OBS, create a live
video input stream, which the camera check counted as camera use. Skip
streams tagged with the Screen media role.
for (let i = 0; i < Pipewire.nodes.values.length; i++) {
const node = Pipewire.nodes.values[i]
if (!node || !node.ready) {
if (!node || !node.ready || node.properties?.["media.role"] === "Screen") {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a case insensitive match here, just for robustness i guess in case a client sets it with the incorrect vocabularly. But I'm not sure if that's even relevant in practice so good to merge

@bbedward
bbedward merged commit 6ecdd6d into duxlabs-dev:master Sep 15, 2026
2 checks passed
bbedward pushed a commit that referenced this pull request Sep 15, 2026
Apps capturing the screen through PipeWire, such as OBS, create a live
video input stream, which the camera check counted as camera use. Skip
streams tagged with the Screen media role.

(cherry picked from commit 6ecdd6d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants