Node.js WebRTC client

后端 未结 8 1270
既然无缘
既然无缘 2020-11-30 23:50

I am looking for a webrtc implementation for node.js
to transmit data from a nodeJS client to another webRTC peer.

So in my case the nodejs appl

8条回答
  •  醉话见心
    2020-12-01 00:35

    Update: the solution below doesn't actually supply video to the server. I'm not sure what the best (Node) solution for that is. In C++, try libJingle.

    It sounds like webrtc.io will allow you to create a node application that is a peer. See the github project here: https://github.com/webRTC/webRTC.io.

    There doesn't appear to be super-active development on the project at the moment, but there are 100 forks of it, and the node module is being downloaded 500 times a month right now, so it seems like people care.

    Example code from the project -- client side

    
    
    
    
    
    

    Server side

    var webRTC = require('webrtc.io').listen(8001);
    

提交回复
热议问题