I have a Node.js process which outputs a video stream into my Node.js app.
On the client end, there is a <video>
tag. I would like to stream the video from Node.js into the src
attribute of the video tag. My previous experience tells me that we must use the blob
object for this. However, I'm not a hundred percent certain how and why I would use it.
Another possible solution I'm thinking of is to create some sort of a temporary file on my server, then write the stream to that file, then serve that file as the source for the video. However, that doesn't seem intuitive. I was wondering, then, if there is a more established solution for an issue like this.