Table of Contents

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

  1. The initiating peer calls CreateOffer; handle OnOffer and relay the SDP to the remote peer via your signalling server.
  2. The remote peer calls CreateAnswer after receiving the offer; relay the SDP back.
  3. Both peers relay their OnIceCandidate events to each other as they arrive.

See also