[CI test] enable getUserMedia in Linux WebKitGTK webview - #1
Closed
mbeckley17 wants to merge 3 commits into
Closed
Conversation
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>
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. |
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.
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.