This WebRTC Experiment allows you share text messages among group of people.
It opens multiple peer connections to support group data connectivity.
In 10 users data session; 10 peer connections will be opened on each user's side.
Each peer connection will open 2 RTP data ports on chrome.
- One outband RTP data port to send text messages
- One inband RTP data port to receive text messages
20 RTP data ports will be opened in
10 users data session. Embarrassing...?!!
On Firefox, by default 16 SCTP data ports will be opened for single peer. So, about 160 SCTP data ports will be opened in 10 users data session. Too awkward!
Multiple peer connections.....is it a solution?
No, not at all. It is just a temporary workaround.
You're strongly suggested to use peer-to-server model instead of opening multi-peers.
How peer-to-server model works?
In this model, server plays a role of another peer. Server receives offer-sdp sent from browser-oriented peer; dynamically generates answer-sdp and returns back to appropriate peer.
Server must be intelligent enough to generate right answer-sdp.
Remember, WebRTC peer object will send DTLS/SRTP (RTP/RTCP) packets maybe as ByteStream. Target media server must be able to capture/understand those packets.
Server can manipulate messages or data coming from 10 or more unique data ports and transfer over single data port!
A few 3rd party media servers:
- Telepresence (MCU)
You can search and find hundred of RTP/DTLS-capable third party media servers on the Web!
To install a media server:
- You need to buy VPS hosting
- You can ask for CentOS6-x64 installation; or otherwise, Ubuntu/etc.
- You need to install all dependencies (extrnal modules) using command prompt (PuTTy on windows)
You can find media servers intallation documents/tutorials here:
For signaling; please check following page:
Remember, you can use any signaling implementation exists out there without modifying any single line! Just skip below code and open above link!
WebRTC Group Text Chat experiment works fine on following web-browsers:
|Firefox||Stable / Aurora / Nightly|
|Google Chrome||Stable / Canary / Beta / Dev|