muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.77k stars 3.95k forks source link

Any of the demos for desktop sharing? #259

Closed corysimmons closed 10 years ago

corysimmons commented 10 years ago

It'd be nice to have something where multiple people could join one room and watch one screencaster share their desktop, then when the broadcast is over, save the video to a server. Do any of the demos fulfill this?

muaz-khan commented 10 years ago

Nowadays I'm working on full-conference recording demos; and I'll bring MediaStreamRecorder based demos very soon. RecordRTC based demos will be added as well.

Regarding desktop sharing, you can share content of normal applications' screen that are active and accessible in windows.

  1. Full screen sharing / Demo
  2. Chrome extension to share full screen - it generates room URIs on the fly.
  3. Chrome extension to share screen of any chrome tab
  4. getScreenId.js - a tinny library allows capturing of screen. You can manually add resulting MediaStream to peer connections.

4th option is using this chrome extension.

There is screen.js as well which provides p2p API for screen capturing. Demo

Regarding recordings, there are following options:

  1. Record in the browser, and use ffmpeg-asm.js to concatenate blobs and merge recorded outputs
  2. Record in the browser; push recorded blobs to nodejs/php/ruby/etc. servers; where, invoke ffmpeg to merge media files in single container.
  3. Setup RTP/over/UDP connection with media server and record sessions on server side. It isn't p2p, though.
corysimmons commented 10 years ago

Thanks for all the info. Will keep me busy. =)