on_play как настроить правильно ?

131 views
Skip to first unread message

Nginx LiveStream

unread,
Mar 23, 2015, 9:22:46 AM3/23/15
to nginx-...@googlegroups.com
Помогите настроить. 
    location /on_play {


       
# set connection secure link
        root
/tmp/hls;
        secure_link $arg_st
,$arg_e;
        secure_link_md5 mysecretkey$arg_app
/$arg_name$arg_e;


       
# bad hash
       
if ($secure_link = "") { return 501; }


       
# link expired
       
if ($secure_link = "0") {return 502; }


       
return 200;
     
}      

  rtmp {
     access_log
/var/log/nginx/rtmp_access.log;
            server
{
               listen
1935;
               ping
30s;
               notify_method
get;
               application myapp
{
                   live on
;
                    exec_static
/usr/local/bin/ffmpeg -i ИП.ПОРТ -vcodec сопи -acodec aac -strict experimental -ar 44100 -ac 2 -f flv rtmp://localhost/myapp/live 2>>/var/log/nginx/ffmpeg.log;
                   on_play http
://localhost/on_play;
                   hls on
;
                   hls_path
/tmp/hls;
                   hls_fragment
5s;
               
}




       
}
}

Я не понять как настроить правильно ? Мне нужно получить ссылку, но чтобы м3ю8 в конце. 
site/hls/live.m3u8  а был к примеру site/secret/live.m3u8

m.mo...@gmail.com

unread,
Apr 10, 2015, 7:38:58 PM4/10/15
to nginx-...@googlegroups.com


بتاريخ الاثنين، 23 مارس، 2015 3:22:46 م UTC+2، كتب Nginx LiveStream:
Помогите настроить. 
   
Hello my friend
Do you want to exchange with me Nginx IPTV Cache push all  cache push

Nginx TO Nginx

my application


Please send me Your application
to my Emaill 

Reply all
Reply to author
Forward
0 new messages