mafintosh / webrtc-swarm

Create a swarm of p2p connections using webrtc and a signalhub
MIT License
380 stars 60 forks source link

Add stream to existing swarm? #23

Open IamCarbonMan opened 7 years ago

IamCarbonMan commented 7 years ago

As of right now, the only way to add video/audio to the swarm is to add it when the swarm is first instantiated. It would be more convenient to create a swarm for sending whatever you're sending over the DataChannel, then add a stream when the user requests it via the UI (using a method on the swarm like swarm.addStream). And if we're adding streams to existing swarms, it would be useful to be able to add DataChannels while we're at it.

ojack commented 7 years ago

I have been looking into this too--it depends on https://github.com/feross/simple-peer/issues/50

aral commented 5 years ago

Just an update that feross/simple-peer#50 has now been resolved via feross/simple-peer#250