P
P
Pantene7422016-05-30 15:45:15
PHP
Pantene742, 2016-05-30 15:45:15

Is it possible to make pseudo-streaming from video files in Node.js?

those who cannot give an exact answer based on their own experience, write in the comments !!!!
I understand that there are no streams in Node.js, but is it possible to organize streaming of video files through a socket server on Node.js
, why through a socket server? - in order to control the issuance of content. insert ads into the stream before watching the video. Ready-made solutions on Nginx are not interesting because more flexibility is needed. For example, an advertising break, up to the point of interrupting 2000 users from watching a video and transferring a stream from one file to them. (this is for those who will write why complicate things)
I assume that Node.js will cope with 200 video streams from files within a single process, taking up to 5 gigabytes.
one user will take a megabyte to the file reading buffer. (+ the memory of the process of the running interpreter) using ajax and sessions, but in PHP, parallelism due to many processes, memory is wasted.
A HUGE REQUEST WRITE THOSE WHO REALLY WORKED WITH THIS. I ALREADY 3 TIMES ASK THIS QUESTION. I ANSWER ONLY THOSE WHO CAN ESTIMATE LOGICAL. ANSWER IF YOU HAVE STREAMED DATA FROM THE FILE SYSTEM TO MANY USERS AT THE SAME TIME
Why am I asking a question before I try ??? BECAUSE I only know PHP , I know how to implement it in PHP
Depending on the answers, I will learn a new language for myself. Node.js or Python. I would like this to be possible on Node.js since Python will be the third syntax for me (not a desire to force brains)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question