TMS FNC WX WebRTC Communication — Guides
ICE server configuration
Add TTMSFNCWXWebRTCIceServer entries to IceServers with STUN or TURN URLs. Set BundlePolicy and IceTransportPolicy on the component to fine-tune connection negotiation.
Creating and managing peers
Add TTMSFNCWXWebRTCPeer items to Peers. Each peer has an ID used when sending offers, answers, and ICE candidates through the external signalling channel.
Media streams
Set LocalVideoSettings to configure the local camera resolution and facing mode. Handle OnUserMediaError to catch permission or hardware failures.
Data channels
Add TTMSFNCWXWebRTCDataChannel items to DataChannels to exchange arbitrary string or binary data between peers without a media stream. Handle OnDataChannelDataString and OnDataChannelDataStream for incoming messages.
Signalling flow
- The initiating peer calls
CreateOffer; handleOnOfferand relay the SDP to the remote peer via your signalling server. - The remote peer calls
CreateAnswerafter receiving the offer; relay the SDP back. - Both peers relay their
OnIceCandidateevents to each other as they arrive.