Video streaming delivers audiovisual bytes incrementally from storage through HTTP to a browser for near-immediate playback. A minimal Express route reads an MP4 from the filesystem, sets its length and media type, and pipes a readable stream to the response. section 2.6.5
Build the basic streaming path with these pieces:
- Expose an HTTP GET route such as /video. section 2.6.5
- Create a readable file stream and pipe it into the HTTP response. section 2.6.5
A production-oriented path separates storage, streaming, and gateway responsibilities. Storage streams a selected video from Azure Storage; the video-streaming service forwards that stream and broadcasts a video-viewed event; the gateway forwards it to the frontend, where an HTML video element plays it. section 10.7.5
Minimal filesystem stream
An Express GET /video handler can obtain a file's size, write a 200 response with video/mp4 metadata, and call fs.createReadStream(videoPath).pipe(res).
Trace the complete streaming-video path from Azure Storage through the video-streaming and gateway microservices to browser playback. section 10.7.5
