Skip to content

Feat/native desktop recording - #18

Merged
kessdev merged 4 commits into
mainfrom
feat/native-desktop-recording
Oct 15, 2026
Merged

kessdev merged 4 commits into
mainfrom
feat/native-desktop-recording

Conversation

@kessdev

@kessdev kessdev commented Oct 15, 2026

Copy link
Copy Markdown
Owner

No description provided.

- add the 'native-desktop' Cargo feature (off by default) with optional
  GStreamer deps for Linux
- add the native_desktop_available command and register it on desktop
- frontend: PreviewFrame type, StartPreviewOptions.onFrame, and
  CameraCapabilities.supportsNativeRecording from the native command

The actual capture/preview/record pipeline lands in follow-up commits under
the feature.
- native-desktop feature: capture once, fan out to a live preview
  (JPEG frames -> Channel) and a native encoder (x264/aac -> mp4), all on
  GStreamer's own threads so the UI is never blocked
- commands native_start_preview/native_stop_preview/native_start_recording/
  native_stop_recording registered on desktop under the feature
- frontend dispatches to the native backend when available, otherwise the
  webview fallback; getPreviewStream() returns null with the native backend
- README documents the feature; CI installs GStreamer dev libs and checks the
  feature; change file (minor)
- native_stop_recording returns the real recording duration (Instant-based)
- native_capture returns the latest preview frame; capture() uses it on desktop
- register/permission for native_capture; README documents native capture
Drop the Linux-only cfg gate; GStreamer's DeviceMonitor picks the OS source
(pipewiresrc/v4l2src, mfvideosrc/ksvideosrc, avfvideosrc) so one implementation
covers all desktop OSes. Move feature-gated deps out of the linux target and
drop the unused glib dependency. Docs note GStreamer per platform.
@kessdev
kessdev merged commit 8679aac into main Oct 15, 2026
11 checks passed
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.

1 participant