Skip to main content
Table of Contents

TTMSFNCWXCustomWebRTCCommunication.AddPeerConnection Method

Adds a peer connection and creates its browser-side video surface.

API unit family: TMSFNCWXWebRTC Declaring type: TTMSFNCWXCustomWebRTCCommunication

Syntax

FMX.TMSFNCWXWebRTC.hppPascalC++
function AddPeerConnection(AID: string; AHTML: string; ACSS: string = ''): TTMSFNCWXWebRTCPeer;
TTMSFNCWXWebRTCPeer* __fastcall AddPeerConnection(System::UnicodeString AID, System::UnicodeString AHTML, System::UnicodeString ACSS = System::UnicodeString());

Parameters

Name Description
AID The identifier used for signaling and data routing.
AHTML HTML content for the peer video surface.
ACSS Optional CSS content for the peer video surface.

Returns

The newly created peer connection item.