Hi @kdroidFilter,
I’m using ComposeNativeWebview and I've noticed a platform-specific discrepancy regarding WebRTC.
The library works perfectly on Windows and macOS, where WebRTC (camera/mic access) is fully functional out of the box. However, on Linux (using WebKitGTK via Wry), the browser fails to initialize WebRTC, showing the error: "WebRTC is not available in your browser."
In WebKitGTK, WebRTC support often needs to be explicitly enabled in WebKitSettings (via the enable-webrtc flag) and requires proper handling of PermissionRequest for media devices.
Requested Additions:
- Enable WebRTC on Linux: A way to toggle the enable-webrtc and enable-media-stream flags in the underlying WebKitGTK engine.
- Permission Management: Since WebRTC requires camera/mic access, could you provide a callback to handle or auto-grant these permissions on Linux?
- Internal Logs: It would be very helpful to have access to the WebView console logs or GStreamer error outputs to debug missing system dependencies (like webrtcbin).
Context:
- Windows/macOS: Working perfectly.
- Linux: RTCPeerConnection is undefined or disabled.
This feature would make the library truly cross-platform for modern communication apps.
Thanks for your hard work on this project!
Hi @kdroidFilter,
I’m using ComposeNativeWebview and I've noticed a platform-specific discrepancy regarding WebRTC.
The library works perfectly on Windows and macOS, where WebRTC (camera/mic access) is fully functional out of the box. However, on Linux (using WebKitGTK via Wry), the browser fails to initialize WebRTC, showing the error: "WebRTC is not available in your browser."
In WebKitGTK, WebRTC support often needs to be explicitly enabled in WebKitSettings (via the enable-webrtc flag) and requires proper handling of PermissionRequest for media devices.
Requested Additions:
Context:
This feature would make the library truly cross-platform for modern communication apps.
Thanks for your hard work on this project!