Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebRTC Relay Server / Broadcast multiple clients

Tags:

webrtc

I've got WebRTC peer to peer working but when I want to broadcast a single camera to multiple clients obviously peer to peer isn't suitable.

I've found solutions like

  • http://lynckia.com and
  • http://www.medooze.com/products/mcu/webrtc-support.aspx

But the first I can't get setup (and it seems to have cross browser issues) the second just feels like we're hitting a nail with a nuclear missile.

All I need is a relay, I don't need to decode / recode streams.

I just need

  • The Broadcaster to connect to the server (peer to peer)

  • The clients to connect to the server (peer to peer)

  • The server to relay the stream from the broadcaster to the clients.

Is there any software out there that offers this solution that I've missed? is there an alternative working and scalable alternative?

Thanks

like image 381
TheBritishAreComing Avatar asked Apr 14 '15 10:04

TheBritishAreComing


2 Answers

Jitsi Video Bridge works pretty much exactly how you describe.

like image 157
xdumaine Avatar answered Oct 23 '22 03:10

xdumaine


On your server you can run Janus, to which your broadcaster can provide a stream via RTP.

Have a look at an example configuration file.

After writing a configuration file which defines how the server receives stream from the broadcaster, you should be able to launch janus in the background via a command line interface tool:

$ janus --daemon --config=config_file.conf

Also, see streaming test demo.

Note: I have not tested this thoroughly.

like image 1
naktinis Avatar answered Oct 23 '22 03:10

naktinis