4 ms·
The term 'WebRTC' is overloaded, it can mean the protocol or the API. These samples only cover in the browser. This repo is also kind of dead https://github.com
by Sean-Der 6y ago
The term 'WebRTC' is overloaded, it can mean the protocol or the API. These samples only cover in the browser. This repo is also kind of dead https://github.com/webrtc/samples/issues/1350 https://github.com/webrtc/samples/issues/1350
If you are interested in WebRTC out of the browser there are lots of implementations and servers! I am also working on a book 'WebRTC for the Curious'[0] that tries to explain the protocol and the history behind it.
[0] https://webrtcforthecurious.com/ https://webrtcforthecurious.com/
- suyash 6y agoShare GitHub repo with latest code, love to play around
- Sean-Der 6y agoThe project I work on is https://github.com/pion/webrtc https://github.com/pion/webrtc. https://github.com/pion/awesome-pion https://github.com/pion/awesome-pion is a list of interesting projects that use it, my favorite thing to share :) For other WebRTC implementations check out. * https://github.com/aiortc/aiortc https://github.com/aiortc/aiortc * https://github.com/shinyoshiaki/werift-webrtc https://github.com/shinyoshiaki/werift-webrtc * https://github.com/rawrtc/rawrtc https://github.com/rawrtc/rawrtc * https://gstreamer.freedesktop.org/documentation/webrtc/index.html https://gstreamer.freedesktop.org/documentation/webrtc/index... There is also https://github.com/node-webrtc/node-webrtc https://github.com/node-webrtc/node-webrtc this takes Google's WebRTC implementation (used in Chromium) and throws a node.js API on top of it!
- gxqoz 6y agoThis blog post from 2018 from Discord indicated that the browser implementation of WebRTC wasn't as good: https://blog.discordapp.com/how-discord-handles-two-and-half-million-concurrent-voice-users-using-webrtc-ce01c3187429?gi=70398163d427 https://blog.discordapp.com/how-discord-handles-two-and-half... Is this still the case? Would you still hypothetically see better audio performance of something like Discord in a standalone app?
- Sean-Der 6y agoOne big issues was poor crypto performance. I managed to convince Google to turn AES-GCM on with SRTP! https://bugs.chromium.org/p/chromium/issues/detail?id=713701#c22 https://bugs.chromium.org/p/chromium/issues/detail?id=713701... I am sure there are other issues as well. The WebRTC implementation in Chromium is controlled by Google (they have all the commit bits). If they don't agree with your change it isn't going to land. It's a tough position to be in for other businesses and Open Source projects even.
- de_watcher 6y agoStill pretty bad. Firefox can't freely select audio devices per stream. Chrome has some kind of unbeatable adaptation that makes latency fluctuate.
- mooss 6y agoDo you have more details on the Firefox problem? I have a WebRTC project that is currently in standby (priorities changed) and one issue that I have not been able to troubleshoot was an inability to send audio from Firefox while it somehow worked on Chrome.
- de_watcher 6y agoIt works fine in Firefox (send and receive) as long as you don't need to play on multiple output devices. Currently you can enable a feature flag, use enumerateDevices() and play audio files on specific devices, but you can't hook up WebRTC streams to the devices. enumerateDevices() should enumerate audio output devices (feature behind pref): https://bugzilla.mozilla.org/show_bug.cgi?id=1152401 https://bugzilla.mozilla.org/show_bug.cgi?id=1152401 Enable by default setSinkId pref: https://bugzilla.mozilla.org/show_bug.cgi?id=1498512 https://bugzilla.mozilla.org/show_bug.cgi?id=1498512 Alex Chronopoulos: "We keep it off because it does not work for everything. It works when we playback a file but not for webaudio or WebRTC. We want to add those too and we keep it off till then."
- 6y ago
- lxgr 6y agoIsn't the protocol more or less "just" SDP, DTLS-SRTP and ICE, or in other words a normal SIP stack without the SIP part? Or is the WebRTC subset/combination of these standards sufficiently different better described as its own protocol?
- Sean-Der 6y agoYea pretty much! The only other thing is SCTP. One nice thing is that the protocol is less flexible. The clients are expected to support NACK, Congestion Control and some other stuff. I haven't done SIP stuff in 10 years. I just remember you had lots of variety between who you interacted with. Maybe this has gotten better!
- 1vuio0pswjnm7 6y agoThis is really good: https://webrtcforthecurious.com/docs/09-history-of-webrtc/ https://webrtcforthecurious.com/docs/09-history-of-webrtc/
- Fredej 6y agoThanks for providing this valuable resource. Out of curiosity: It seems like the communication protocol that's used is RTP and RTCP. And it seems that these work quite well for video and audio streaming. However what if I want to do real time streaming of a custom binary protocol? Like, say, accelerometer data from a robot or similar. Would the best bet be to attempt to make the protocol RTP and RTCP conformant or would it be possible to make a custom fork of WebRTC which supports custom protocols at the communication layer?
- detaro 6y agoWebRTC has "DataChannels" which you can use for arbitrary data.