You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How hard would it be to add support for the MediaStream API? If I use simple-peer and add an on stream event, it gets called! But the stream parameter is undefined:
peer.on('stream', function (stream) {
console.log(stream);
})
If I put a breakpoint on the console.log line and look at the call stack, it looks like video data is arriving in Node but not making it as far as simple-peer.
All I would like to do is record the video to disk. I see you have a TODO in RTCPeerConnection.js to send MediaStream info so I'm assuming that it is possible to do with this approach.
Do you have any plans to add MediaStream support in the near future? If not, I'm happy to try and get this working so any pointers you can give me would be greatly appreciated.
Many thanks.
The text was updated successfully, but these errors were encountered:
Hey, sorry I missed this issue. MediaStream support would be really cool, that would be a really convenient way to hook webcam data up to Node!
It would definitely be possible to add support for this, but I've never used the MediaStream API and I'm not sure how complicated it is. Overall, there shouldn't be any non-trivial work, it consists of creating a wrapper API on the Node-side, making that wrapper call create WebRTC API objects/call functions/register event handlers on the Electron-side, and making sure to update the Node-side state when possible.
I don't plan on adding this, but if you attempt a PR I can try to give you some help if you need it.
How hard would it be to add support for the MediaStream API? If I use simple-peer and add an on stream event, it gets called! But the stream parameter is undefined:
If I put a breakpoint on the console.log line and look at the call stack, it looks like video data is arriving in Node but not making it as far as simple-peer.
All I would like to do is record the video to disk. I see you have a TODO in RTCPeerConnection.js to send MediaStream info so I'm assuming that it is possible to do with this approach.
Do you have any plans to add MediaStream support in the near future? If not, I'm happy to try and get this working so any pointers you can give me would be greatly appreciated.
Many thanks.
The text was updated successfully, but these errors were encountered: