Installation
Add @sigx/lynx-webrtc to your project.
Install the package
pnpm add @sigx/lynx-webrtcNative setup
Native modules are autolinked by @sigx/lynx-cli — run a prebuild after installing:
sigx prebuild
Autolinking wires up everything the native SDK needs:
- the native WebRTC SDK dependency (Android Gradle dep /
WebRTC-SDKpod); - the Android
RECORD_AUDIOandMODIFY_AUDIO_SETTINGSpermissions; - the iOS microphone usage description;
- the iOS
audiobackground mode, so an active call survives backgrounding.
The native SDK adds roughly 5–10 MB per ABI on Android and ~10 MB on iOS. WebRTC is Android + iOS only — it is inert on the web runtime, so gate any usage behind isWebRTCAvailable().
Verify
import * as WebRTC from '@sigx/lynx-webrtc';
console.log(Object.keys(WebRTC));
