t-mullen / simple-signal

Signalling solution for simple-peer with socket.io
MIT License
162 stars 27 forks source link

[FEATURE REQUEST] Add addStream(mediaStream) method and 'stream' event for SimpleSignalClient #33

Open OmarB97 opened 3 years ago

OmarB97 commented 3 years ago

It would be great to have an addStream() method for SimpleSignalClient, similar to what you can do directly with simple-peer. Also a 'stream' event would be perfect so we can get a callback where we can do something directly with the mediaStream from the other peer.

function addStream(mediaStream) {
    ... 
)
.on('stream', (stream) => {
    ...
}