Allow webrtc connection for products - #399
Open
ERussel wants to merge 2 commits into
Open
Conversation
ERussel
force-pushed
the
chore/open-webrtc
branch
from
August 14, 2026 13:42
83a0f2e to
6379f5d
Compare
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.
SUMMARY
Products need WebRTC (
RTCPeerConnection) inside the iOS/Android host. Theearlier 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
RTCPeerConnectionavailable toproducts 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 removeswindow.RTCPeerConnection. Products can construct peer connections directly;camera and microphone capture (
getUserMedia) continues to trigger thenative OS permission request. The vendored
ios/truapi-host/.../Resources/truapi-container.jsbundle is regenerated tomatch.
WebRTCmethod requests camera and microphone (devicepermissions) through TrUAPI, then runs
getUserMedia+RTCPeerConnection.createOffer. It appears in the method browser and thediagnosis so the flow can be exercised end to end. It no longer requests a
separate WebRTC remote permission.
CONTEXT
WebRTC gating #379