Repository navigation
Feat/native desktop recording - #18
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.