RTCMultiConnection

RTCMultiConnection

 

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 TsgcWebSocketHTTPServer). Find below the properties you must configure.

 

Server

 

Host: is the public IP address or DNS name of WebSocket server.

Port: is the listening port of WebSocket Server.

 

IceServers

 

Is the configuration of the ICE servers (STUN/TURN) to allow communication 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, the higher the resolution, the more bandwidth is required by the connection.

 

HTMLDocuments

 

Configure for every Application which is the name of the HTML page that serves 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, read more Server SSL.

Applications

Name Description
VideoConferencing Multi-user (many-to-many) video chat using mesh networking model.
ScreenSharing Multi-user (one-to-many) screen sharing using star topology.
VideoBroadcasting Multi-user (one-to-many) video broadcasting using star topology.