I had a node.js server which streamed videos from my local pc to html5 video tags.
I wanted to use this backend to stream videos to my flytter app as well but could find any way to do it.
One solution was to host the file on the server and play it using the video_player plugin.
But I wanted to be able to play it using the same backend whcih responds to a get request containing headers about which block of data is needed and then sends back a response with that data. Any help?
Example html that plays a video:-
<html>
<title>Welcome</title>
<body>
<video controls>
<source src="http://localhost:8000/movie/0" type="video/mp4"/>
<!-- fallback -->
Your browser does not support the <code>video</code> element.
</video>
</body>
</html>
Node backend responds with appropriate bloks of data based on GET requests from the player.