By Admin on Sunday, 26 September 2021
Category: All

RTCMultiConnection Delphi Server API

​From sgcWebSockets 4.5.3, RTCMultiConnection is supported. RTCMultiConnection is a WebRTC JavaScript library for peer-to-peer applications (screen sharing, audio/video conferencing, file sharing, media streaming etc.)

Configuration

The RTCMultiConnection requires a WebSocket server for Signaling, so link the server property of RTCMultiConnection to a WebSocket Server (like TsgcWebSocketHTTTPServer). Find below the properties you must configure.

Server


IceServers

Is the configuration of the ICE servers (STUN/TURN) to allow communicate between peers. Example:

[{ "urls": "stun:www.yourstun.com"},{"urls": "turn:www.yourturn.com","username": "user","credential": "secret"}]

VideoResolution

Here you can configure the Video Resolution of Video Conferences, as higher is the resolution, more bandwidth is required by the connection.

HTMLDocuments

Configure for every Application which is the name of the HTML page that servers this content.

Example: if the server is running on website www.webrtc.com on port 8443 and the HTMLDocuments.VideoConferencing = /RTCMultiConnection-VideoConferencing.html, the url to access the VideoConferencing will be

https://www.webrtc.com:8443/RTCMultiConnection-VideoConferencing.html

WebRTC requires a secure connection (HTTPs) so requires the use of certificates.

Applications

The Component supports the following Applications:


Find below a compiled Server Demo for Windows 32.​

Related Posts