Answer the question
In order to leave comments, you need to log in
WebRTC, server as participant
Good day.
I am writing a project on Node.JS, I plan to stream video and audio. I want to use WebRTC technology to receive video and audio streams from clients and then send them to the server.
Interested in a way to get a stream on the server side. Are there ready-made solutions or who can tell in which direction to dig at all?
Answer the question
In order to leave comments, you need to log in
You can choose from ready-made libraries, here is a list
Each of them has a dock and examples, well, at least one article (English) with an example of application (google find)
Pros and cons in abundance.
The first of those that appeared, and as a result, the most “pumped” and stable one, is the WebRTC.io module ,
most of the rest are its forks.
WebRTC.io ( WebRTC client for node )
PS: Nevertheless, from the server side, WebRTC is nothing special, it can be controlled using the well-known socket.io (for example , like this ).
Which, in general, is advised by some smart people, since the task is very specific for solving through an additional level of abstraction.
PPS: the actual subject IRL ( with source )
Look for PeerConnection implementations on node.js. For example, this library allows you to record audio.
See also the recently released nodejs webrtc library . Apparently this is what you need.
There is a special server software for this. For example WebRTC & Broadcasting Server . You send a stream to it via WebRTC, then you cling to other browsers and watch this stream. Here is the demo .
Solutions appeared after a year? I also ask this question, and so far I have only come to this option:
https://www.npmjs.com/package/recordrtc
The client does not send PeerConnection, but renders video in webm format from webrtc. There is a nodejs lib which receives and writes the file. You can just try to send it over the socket. Now this is what I'll do.
If anyone has found a better solution, please let me know.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question