Table of Contents

Getting started with TMS FNC WX WebRTC Communication

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.
  • TMS FNC WX Pack installed.
  • A signalling server to exchange offer/answer and ICE candidates between peers (not included in the component).
  • Application running in a browser context that supports WebRTC (HTTPS required in production).

Add the component

  1. Drop TTMSFNCWXWebRTCCommunication from the component palette onto a form.
  2. Add at least one STUN server to IceServers.
  3. Handle OnIceCandidate, OnOffer, and OnAnswer events to relay signalling data through your signalling server.

Configure ICE servers

{ Inside your form's OnCreate: }
{ Add a STUN server entry to WebRTC1.IceServers }
{ Set the URLS property on the added item to 'stun:stun.l.google.com:19302' }

Next steps

  • Guides — peer management, media streams, data channels, and ICE negotiation.
  • API reference — full class reference.