Hy to everybody Hope someone can help me on this.. I have a nginx server who is now showing mp4 files in a website on an html5 player. Evertything fine but i have some file very long( 3-4 hours) and i should show them where they are still in recording.
What is the correct approach to solve this? We are studing webRTC but is seems complex for the target we have: "show files while they are still in recording..“ Regards Daniele
There are a few ways to solve this problem. The easiest is to use an HLS encoder, where the recording is written to segment files as it goes. The client can easily request whatever segment it wants.
If you absolutely cannot change the way you're recording now, a hacky alternative is that you DIY this with ranged requests. This assumes that your server will serve an incomplete resource, that you don't care about caching, and that you want to make your own Media Source on the client. Use MediaSource Extensions for this, but I don't recommend it.