Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible to record the video on the server? #26

Open
Joe-Palmer opened this issue May 2, 2016 · 1 comment
Open

Would it be possible to record the video on the server? #26

Joe-Palmer opened this issue May 2, 2016 · 1 comment

Comments

@Joe-Palmer
Copy link

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.

@mappum
Copy link
Owner

mappum commented May 28, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants