Video streaming from client to server: which alternative use, websocket or webrtc

前端 未结 5 1114
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 04:08

I wish do several little projects experimenting with video and audio streaming from client to server and from client-server-multiples points, I have several questions:

5条回答
  •  耶瑟儿~
    2021-01-03 04:42

    I don't know whether a clear answer is still requested for this question, but I wanted to do similar things.

    I personally used Node.js in combination with the following plug-in for Node.js to enable WebRTC at the server side: node-webrtc. It's only supported for Linux and Mac OSX right now, but it allowed me to quickly set up a WebRTC server. You could then use the server to distribute your stream to other peers, either connected using WebSockets, WebRTC, or something else.

    The source code is also freely available from the WebRTC webpage. So you can build a native application yourself that acts as a server if you want.

提交回复
热议问题