h.264 streaming support?
Igor Sysoev
is at rambler-co.ru
Tue Jun 17 12:19:40 MSD 2008
On Mon, Jun 16, 2008 at 01:07:20PM -0700, mike wrote:
> 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?
location = /videoplay.php {
proxy_pass or fastcgi_pass
}
location /path/to/ {
internal;
flv;
root ...
}
> 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
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list