11
votes

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

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

3
have you checked out kurento media server? - mido

3 Answers

2
votes

Jitsi Video Bridge works pretty much exactly how you describe.

1
votes

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.

0
votes

Have a look at this github-repo inspired from muaz khan's WebRTC p2p scalable broadcast. This can work great on LAN. On internet, I am not sure how well it can work as of now though we are improving it on the go.