Mix Multiple getDisplayMedia into One

166 views
Skip to first unread message

Nishant Kashyap

unread,
Feb 1, 2020, 5:22:27 AM2/1/20
to discuss-webrtc
Is it possible to mix multiple screen contents from four different computers in a local area network and then present them on the fifth screen?
I am asking about Screen and not multiplexing Videos. Please suggest. Give me sample code if possible.
Screen-Sharing.jpg

Kyle Foley

unread,
Feb 1, 2020, 12:17:13 PM2/1/20
to discuss-webrtc
Just display them side by side, no need to mix anything. Just set up webrtc connections between them and add getDisplayMedia as the video track. Plenty of demos online about how to set up a WebRTC connection, and instead of getUserMedia, just use getDisplayMedia. Repeat for as many screenshares as you need

Thomas Greenwood

unread,
Feb 1, 2020, 3:35:39 PM2/1/20
to discuss...@googlegroups.com
There are good reasons to mix the video to send it over the network e.g. interoperability or to provide a single stream rather than multiple which sometimes allows better adaptive nitrate control down to lower bandwidth.  Perhaps that is why they want to mix it.

HTH

Now that you can stream from a canvas its possible to draw each video to a canvas and stream from the canvas over the network. I don't have code for this but I'm sure it could work though I'm not sure if you might find some performance issues on slower hardware.

HTH

On Sat, 1 Feb 2020, 17:17 Kyle Foley, <ky...@imajion.com> wrote:
Just display them side by side, no need to mix anything. Just set up webrtc connections between them and add getDisplayMedia as the video track. Plenty of demos online about how to set up a WebRTC connection, and instead of getUserMedia, just use getDisplayMedia. Repeat for as many screenshares as you need

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/7dadce19-6b9c-4680-867b-8a2aa6ef6a64%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages