Im trying to make a Stream of Socket.io Image Buffers into a Video displayed on a browser, so every 10 ms a image of the desktop is sent via the socket.io client to the server then the server is getting the image saving it then displaying it on a web browser which is refreshing would it be possible to make a consistently rolling video using the Image Buffers?
socket.on("image", (base64) => {
// eslint-disable-next-line no-undef
const buffer = Buffer.from(base64, "base64");
Jimp.read(buffer, (err, res) => {
if (err) throw new Error(err);
res.write("image.jpg");
});
});
That code saves the image into a file, then displays on a browser but can i make it into a video stream using the Image Buffers?