h.264 streaming support?

mike mike503 at gmail.com
Tue Jun 17 00:07:20 MSD 2008


So pseudo code for a file named "/videoplay.php":

header("Content-type etc...")

if(isset($_GET['start'])) {
   $start = intval($_GET['start']);
   header("X-Accel-Redirect: /path/to/file.flv?start=$start");
} else {
   header("X-Accel-Redirect: /path/to/file.flv");
}

and in nginx.conf, I could have:

location /videoplay.php {
 flv;
}

would this work together?

On 6/13/08, Igor Sysoev <is at rambler-co.ru> wrote:

> Yes, but do not forget "start":
>
> X-Accel-Redirect: /path/to/file.flv?start=XXX
>
> Besides, nginx can handle flv only as static file, i.e. the request
> can not be proxied, etc. However, you can use nginx on storage backends:
>
>    nginx/proxy_buffering off  ->   nginx/FLV
>                                    nginx/FLV
>                                    nginx/FLV





More information about the nginx mailing list