muaz-khan / MultiStreamsMixer

MultiStreamsMixer is a JavaScript library that allows you pass multiple streams (e.g. screen+camera or multiple-cameras) and get single stream.
https://www.webrtc-experiment.com/MultiStreamsMixer/
MIT License
437 stars 109 forks source link

Voice Chat for browser video game #19

Open nsmith1024 opened 5 years ago

nsmith1024 commented 5 years ago

Hello, I wrote a browser game in HTML5/JavaScript, and i wanted my players to be able to voice chat with each other while playing using WebRTC.

So can players from different browsers use WebRTC to connect to a server running MultiStreamMixer , where each player sends their voice stream from their browser mic to MultiStreamMixer, then each get back a single WebRTC stream of all players voice combined into one stream so everybody can hear everybody else?

Do you have example of how to do this?

luanraithz commented 5 years ago

Hello, why don't you just connect them using WebRTC peer connection ? If you don't do so, you must take care to a user not listen to his voice again and probably the delay would be higher. I think there is no need for a server with a WebRTC implementation and this lib.