Skip to content

[CI test] enable getUserMedia in Linux WebKitGTK webview - #1

Closed
mbeckley17 wants to merge 3 commits into
mainfrom
linux-media-capture
Closed

[CI test] enable getUserMedia in Linux WebKitGTK webview#1
mbeckley17 wants to merge 3 commits into
mainfrom
linux-media-capture

Conversation

@mbeckley17

Copy link
Copy Markdown
Owner

Fork-internal PR to run CI (Linux build + clippy + Tauri check) on the media-capture fix. Not the upstream PR; will be deleted after CI.

Microphone/camera capture worked on macOS (WKWebView) and Windows
(WebView2) but failed on Linux with NotAllowedError. WebKitGTK ships
with enable-media-stream off and a default permission-request handler
that denies every request.

Reach the underlying webkit2gtk::WebView from on_webview_ready, enable
the media-stream settings, and install a permission-request handler that
allows UserMedia requests while leaving other permission kinds to
WebKit's default. No-op on macOS/Windows.

WebRTC/getDisplayMedia is gated behind an opt-in `webkit_webrtc` feature
since it needs a WebKitGTK built with -DENABLE_WEB_RTC=ON.

Signed-off-by: Beckley <mattcbeckley@gmail.com>
Signed-off-by: Beckley <mattcbeckley@gmail.com>
Signed-off-by: Beckley <mattcbeckley@gmail.com>
@mbeckley17

Copy link
Copy Markdown
Owner Author

CI verified on fork Linux runners: Rust Lint (clippy) ✅ and Desktop Core (cargo check + Tauri clippy + Linux Desktop build) ✅. Closing; not the upstream PR.

@mbeckley17 mbeckley17 closed this Jul 29, 2026
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