G
G
Gleb2013-07-29 04:51:14
Browsers
Gleb, 2013-07-29 04:51:14

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

5 answer(s)
I
Ilya Sevostyanov, 2013-07-29
@RUVATA

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 )

B
brainsmith, 2013-07-29
@brainsmith

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.

M
MaxTerre, 2014-06-30
@MaxTerre

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 .

D
Denis Karimov, 2016-09-30
@trixden

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.

A
aylarov, 2014-01-05
@aylarov

If you wrote what you plan to do with the streams further (after receiving it on the server), then maybe I would suggest some solution :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question