A
A
Artem Shtepenko2015-03-22 15:37:23
JavaScript
Artem Shtepenko, 2015-03-22 15:37:23

How to make the stream video not block the stream?

There is a video stream on the node. If the video is streaming, then I can’t open the 2nd such tab until I close the first one.
How to solve this problem?

stream = fs.createReadStream(info.path, { flags: "r", start: info.start, end: info.end });
  stream = stream.pipe(new Throttle(settings.throttle));
  stream.pipe(res);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Shtepenko, 2015-03-23
@cyber_ua

As it turned out, doing this on a node is the same as shooting in the leg with a dobovik.
There is
https://wiki.videolan.org/Documentation:Documentation for this .
https://www.ffmpeg.org/ffserver.html
https://ru.wikipedia.org/wiki/RTSP
stackoverflow.com/questions/5858936/html5-live-str...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question