Share screen and audio/video from single peer connection!
Copyright © 2013 Muaz Khan<@muazkh>.
video-stream
screen-stream
- It is one-way streaming; flowing from peer1 to peer2.
- peer1 attached both screen capturing stream; and audio/video stream.
- On "peer2" side; "onaddstream" event is fired two times.
- First time; "onaddstream" returned audio/video stream; and last time it returned screen capturing stream.
- Basically it is multi-streams attachment demo.
- You can get same functionality via "renegotiation" process; supported by RTCMultionnection v1.3 and v1.4
// attaching audio/video stream offerer.addStream(video_stream); // attaching screen capturing stream offerer.addStream(screen_stream);