I’m trying to write a simple HTTP server that can send videos (mp4) to the browser. And I can’t make it so that the user can randomly change the playback position of the video in the browser.
Now I’m able to send the video file in full and it plays in the browser. I do something like this in IdHTTPServer1CommandGet:
… AResponseInfo.ContentStream := TFileStream.Create(MyVideo.mp4′, fmOpenRead or fmShareCompat); …
But if I change the playback position in the browser, for example, jump 30 minutes ahead, then this does not work.
Let me I please kindly ask for some advice or guidance on how to implement this feature? What code should be in the IdHTTPServer1CommandGet procedure? – I couldn’t find the answer on the Internet.
Many thanks!
Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.