Skip to content

Feature Request: Enable WebRTC support for WebKitGTK (Linux) - Works on Windows/macOS #37

@djardon

Description

@djardon

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions