I have a project that I need to stream webcam frames from website (client browser) to a server (cloud server) and get back analytics results back.
The server will get on live the frames process them with light algorithm and will return a data (not an image/video).
On the other hand, I need the server will keep the frames and will make from all the frames a full mp4/webm video file which will be process with much more complicate algorithm at the end of the live recording.
What is the best approach for sending those frames and sending back the analytical results?
Is websocket/socket.io my best solution or there is better solution?
I was looking on GRPC and WEBRTC but didn’t see anything that will help me with that, if there is I didn't able to find the right solution or example for something that close to that.
GRPC – does not support web.
GRPC-WEB – does not support client-side and bidirectional streaming.
WEBRTC – I read that it is not for client to server it is more for client to client, and it there is client to server and back I will be glad to get and example for that or guide that will help me.