Out of interest, how did you stream the video data to the frontend?

I used MediaStream, which is part of the standard Web API

https://developer.mozilla.org/en-US/docs/Web/API/MediaStream