WebRTC Relay Server / Broadcast multiple clients

I have a WebRTC peer-to-peer network, but when I want to broadcast a single camera to multiple clients, obviously this is not suitable.

I found solutions like

But the first thing I can’t configure (and it seems to have problems with the browser) the second just feels like we are knocking down a nail with a nuclear missile.

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

I just need

  • Translator for connecting to the server (peer)

  • Clients to connect to the server (peer)

  • A server for relaying a stream from a broadcaster to clients.

Is there software that offers such a solution that I missed? Is there an alternative working and scalable alternative?

thanks

+6
source share
2 answers

Jitsi Video Bridge works exactly as you describe.

+2
source

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

See an example file.

After creating a configuration file that determines how the server receives the stream from the broadcaster, you can start janus in the background using the command line command-line tool :

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

Also see streaming test demo .

Note. I have not tested it completely.

+1
source

Source: https://habr.com/ru/post/985110/


All Articles