cretz / webrtc-ipfs-signaling

Tech demo using JS-IPFS to do signaling for WebRTC
MIT License
59 stars 6 forks source link

Not really an issue #1

Open rayj00 opened 5 years ago

rayj00 commented 5 years ago

..but I am wondering if this would work with WebRTC video, like a one-to-many broadcast?

cretz commented 5 years ago

Sure. Basically for each p2p WebRTC connection, you just need signalling to connect (I personally don't use this anymore, I use gun.js for signalling). Once connected, send anything, including video. Technically a WebRTC browser could send the same video source to multiple, each connection being a separate WebRTC connection, only limited by their upload speed.

marcoippolito commented 4 years ago

@cretz I read you are now using gun.js for signalling. I already had a look at gun.js but didn't find it very friendly (may be it's just me). Have you a simple example of using gun.js for signalling? Thank you in advance.

cretz commented 4 years ago

didn't find it very friendly (may be it's just me)

It's not just you, when I used gun.js it was because ipfs's JS lib was too immature. If I needed to do it again today, I would use ipfs's JS lib. If you want to see the old code, I used gun.js for WebRTC signalling on https://github.com/cretz/myscreen.live.

marcoippolito commented 4 years ago

@cretz Thank you very much! I'm going to have a look at it. But as you say, it would be better to use js-ipfs