Skip to content

Allow webrtc connection for products - #399

Open
ERussel wants to merge 2 commits into
mainfrom
chore/open-webrtc
Open

Allow webrtc connection for products#399
ERussel wants to merge 2 commits into
mainfrom
chore/open-webrtc

Conversation

@ERussel

@ERussel ERussel commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

SUMMARY

Products need WebRTC (RTCPeerConnection) inside the iOS/Android host. The
earlier approach in #379 tried
to gate it behind an app-level permission through the __container__ bridge,
but that gating did not hold up, so it is not the path forward.

Instead, the lockdown container now leaves RTCPeerConnection available to
products rather than deleting it. Access to the camera and microphone stays
protected by the operating system: the user still sees the native permission
prompts before any media is captured.

SOLUTION

  • js/container — the TrUAPI-mode lockdown no longer removes
    window.RTCPeerConnection. Products can construct peer connections directly;
    camera and microphone capture (getUserMedia) continues to trigger the
    native OS permission request. The vendored
    ios/truapi-host/.../Resources/truapi-container.js bundle is regenerated to
    match.
  • Playground — the WebRTC method requests camera and microphone (device
    permissions) through TrUAPI, then runs getUserMedia +
    RTCPeerConnection.createOffer. It appears in the method browser and the
    diagnosis so the flow can be exercised end to end. It no longer requests a
    separate WebRTC remote permission.

CONTEXT

@ERussel
ERussel requested review from a team August 14, 2026 13:03
@ERussel
ERussel force-pushed the chore/open-webrtc branch from 83a0f2e to 6379f5d Compare August 14, 2026 13:42
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