WebRTC-Experiment icon indicating copy to clipboard operation
WebRTC-Experiment copied to clipboard

Video Game Voice Chatting with WebRTC

Open nsmith1024 opened this issue 5 years ago • 1 comments

Hello, I wrote a WebGL/HTML5 video game that runs in browser (JavaScript), and i want my players to have voice chat so they can talk to each other while playing.

So i want to have a headless linux server so that the HTML5 video game code can communicate with the server to create WebRTC voice rooms on the server so players can conference chat with each other wile playing.

I read there is a new API in JavaScript called MediaDevices.getUserMedia() that can use WebRTC for voice conferencing.

Since i really dont know anything about it (there is so many things to know these days) do you know any WebRTC type server that can set up the voice chat rooms and route the voice streams to each other, and also Javascript code in the browser to capture the mic, send streams and play streams from others using WebRTC and MediaDevices.getUserMedia(), or have any code that shows how to do all that??

Any help would be appreciated, thanks!

nsmith1024 avatar Jun 25 '19 13:06 nsmith1024

You need SFU (Selective Forwarding Unit) for that, there are solution you can use,

  • Janus Media Server
  • Mediasoup
  • Kurento

abdularis avatar May 25 '20 08:05 abdularis