I want to build a live streaming app. My thought process:
- Get the Video/Audio data from the
navigator.mediaDevices.getUserMedia(constraints);
[client-streamer] - create rooms using sockets(Socket.IO or WebSockets from flask) [backend]
- Send the data in 1 to the room members using sockets.
- display the media on the client-side.
Is that correct? How should I do it?
how do I broadcast data to specific room members and not to everyone? (flask) How to consistently send data from the streamer -> server -> room members. the stream is given from 1 is an object, where is the data?
any other better ideas will be great! thanks.
- I need to implement the server-side by myself without help from libraries that will do the work for me.