4 ms·
> but those do move slow anyways, it's not WebTorrent's fault Given how complicated WebRTC is, I wouldn't put the blame on torrent clients either. libwebrtc by
by pzmarzly 3y ago
> but those do move slow anyways, it's not WebTorrent's fault
Given how complicated WebRTC is, I wouldn't put the blame on torrent clients either. libwebrtc by Google is the de-facto standard, and afaik you need to compile all of it (including video and audio codecs) even though WebTorrent only cares about data streams.
Even for Node.js, which should be an easy choice since webtorrent is written in JS, your choice is to either use wrtc (native addon that has to either be built from source or use a prebuilt binary - this is what webtorrent-hybrid uses - and this library hasn't seen an update in last 3 years) or electron (which bundles libwebrtc as part of Blink engine - afaik this is what webtorrent-desktop uses).
I wish there was a better web API for P2P traffic - sadly WebTransport is not meant for P2P use cases, i.e. doesn't punch firewalls etc. Then we could see some real improvements done to P2P ecosystem, instead of everyone wasting time on figuring out how to build, use and ship libwebrtc.
- Sean-Der 3y agoYou have more choices then that for node.js * https://github.com/shinyoshiaki/werift-webrtc https://github.com/shinyoshiaki/werift-webrtc * https://github.com/murat-dogan/node-datachannel https://github.com/murat-dogan/node-datachannel If libwebrtc fits your needs you totally should use it! Alternatives have existed for years though
- pzmarzly 3y agoThose are absolutely amazing libraries, thanks for linking! I see that much has changed for the better in the past year.