Repository navigation
Conversation
This was referenced Oct 31, 2026
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.
Add CaptureSource, ScreenCapturer and ScreenRecorder so callers can select a display or window, capture an independent image, and record silent H.264 MP4 files. Implement ScreenCaptureKit/AVAssetWriter on macOS 14+ and Windows Graphics Capture/Media Foundation on Windows 10 version 2004+. Android, iOS, Linux and OpenHarmony expose explicit unsupported stubs.
The shared layer defines source exclusivity, physical-pixel cropping, cursor options, asynchronous recording states and terminal events, bounded frame buffering, cancellation cleanup and publication without overwriting an existing file. Includes the generated C ABI, handle tags, native dependencies and regression/smoke tests.
Validation:
Draft: source-picker denial/parent destruction, source invalidation, long-running memory behavior, runtime shutdown and complete asynchronous binding coverage remain to be validated. No audio or pause/resume support.
The companion workspace PR libnativeapi/nativeapi#19 contains the spec, generator changes, six bindings and Flutter example. Merge core first; update the workspace gitlink if this PR is squash-merged.