5 ms·
I am writing a real time browser game with synchronized physics and would like to use UDP via the data channels in WebRTC to send position data between the user
by jeena 13y ago
I am writing a real time browser game with synchronized physics and would like to use UDP via the data channels in WebRTC to send position data between the users (and also to the Node server) and to make in game audio chat possible.
1. I wasn't able to find demos which do only audio
2. If I don't allow video and only audio in Firefox, none of the demos work at all, I can't hear anything
3. I wasn't able to find any basic example code on how to use data channels
4. Is there a Node module so I could talk to my Node server via data channels (and therefor via UDP) (http://stackoverflow.com/questions/20849039/node-js-module-for-webrtc-data-chanels-usage http://stackoverflow.com/questions/20849039/node-js-module-f...)?
I'd appreciate hints and links to solve any of this problems :)
- martindale 13y agoI'm working on para.io [1] which is in this same space, solving the same problems. We should talk! [1]: http://para.io http://para.io
- ilaksh 13y agohttp://peerjs.com/ http://peerjs.com/
- phowat 13y agoI wrote this a long time ago when I was beginning to learn webrtc. It's really straightforward and has examples for voice+video chat and voice only. https://github.com/phowat/simple-webrtc-chat https://github.com/phowat/simple-webrtc-chat. Feel free to drop me an email if you have any questions (it's in my profile here.)
- daveid 13y agoI'm working on an open-source WebRTC project [0], and my code contains audio-only chat and data channels setup [1] which can hopefully set you on the right path. [0]: https://github.com/Gargron/baron https://github.com/Gargron/baron [1]: https://github.com/Gargron/baron/blob/master/public/js/models/contact.js https://github.com/Gargron/baron/blob/master/public/js/model...