0

I am generating a mp4 file from a live stream, sending it to nginx web server and playing it in the browser using html5 video tag. Since the file is being continuously generated the browser stops playing it after some time (say 5 seconds). I want the browser to keep playing the file from where it stopped. If I use the html5 "loop" feature it starts again from the beginning. Is there some configuration/setting in nginx or html5 which will allow me to do this?

John Qualis
  • 1,663
  • 4
  • 33
  • 52

1 Answers1

0

You need to set a "Connection": "keep-alive" response header and http 1.1 explicitly, you can do so like this:

server {
    ...

    location /http/ {
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        ...
    }
}
RecycleRobot
  • 801
  • 2
  • 11
  • 19