h.264 streaming support?

Maxim Dounin mdounin at mdounin.ru
Tue Jun 17 02:59:44 MSD 2008


Hello!

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 {

-location /videoplay.php {
+location /path/to/ {

> flv;
>}
>
>would this work together?

You should use flv on actual files, not on your php script.

Maxim Dounin

>
>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