webRTC-io / webRTC.io

An abstraction layer for webRTC. Aim is to simplify the HTML5 web standard webRTC in a similar manner to socket.io w/ websockets. Highly experimental technology
1.6k stars 293 forks source link

Screen Share and User Webcam Video #35

Open dhassoun opened 11 years ago

dhassoun commented 11 years ago

So we have an app extended upon from the demo app. 1:1 only. Needs to show user video and screen share from 1 user.

is there a good way to send 2 videos stream from 1 user? currently we had to modify the webrtc.io framework so it was instance based (cleaner approach so global dom not smeared) and then have multiple connections.

var rtc = new WebRTCIO().rtc; var screenShareConnection = new WebRTCIO().rtc;

screenShareConnection.connect("ws:" + urlc, room + "_screen"); rtc.connect("ws:" + urlc, room);