Join with/without camera using RTCMultiConnection
Copyright © Muaz Khan <@muazkh>.
Join:
or open new session:
Local Media Stream |
Getting started with RTCMultiConnection
<script src="https://www.webrtc-experiment.com/RTCMultiConnection-v1.4.js"></script> <script> var connection = new RTCMultiConnection(); // force RTCMultiConnection to not attach local stream connection.dontAttachStream = true; // to create/open a new session connection.open('session-id'); // if someone already created a session; to join it: use "connect" method connection.connect('session-id'); </script>
RTCMultiConnection features:
- You can open multi-sessions and multi-connections — in the same page
- You can share files of any size — directly
- You can share text messages of any length
- You can share one-stream in many unique ways — in the same page