Screen Sharing using RTCMultiConnection
Copyright © 2013 Muaz Khan<@muazkh>.
Join a session:
or open new session:
Local Media Stream |
Remote Media Streams |
Getting started with RTCMultiConnection
<script src="https://www.webrtc-experiment.com/RTCMultiConnection-v1.1.js"></script> <script> var connection = new RTCMultiConnection(); // for Screen Sharing; set direction = 'one-way' connection.direction = 'one-way'; // and set session = 'only screen' connection.session = 'screen'; // 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