arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.41k stars 3.51k forks source link

on_play is not called in case of hls #448

Open joula opened 10 years ago

joula commented 10 years ago

I have following config:

rtmp {
    on_play http://localhost/on_play;

    server {
        listen 1935;
        chunk_size 4000; 

        application live {
            live on;
            drop_idle_publisher 10s;
            wait_video on;
            wait_key on;
        }

        application hls {
            live on;
            hls on;
            hls_path /tmp/hls;
            hls_fragment 1s;
            hls_fragment_slicing aligned;
        }                                                                            
    }
}

But the on_play is not called in case of hls stream. Is it a problem in the config or a feature which is not implemented yet?

Thanks

izemize commented 10 years ago

Hi!

publish is rtmp "stuff", so not work with HLS. you can't connect to HLS with any external program, and you don't send "publish" command to server.

HLS work after rtmp connecton done.

Sorry for bad english ᐧ

2014-08-05 22:14 GMT+02:00 Gyula Szabó notifications@github.com:

I have following config:

rtmp { on_publish http://localhost/on_publish;

server { listen 1935; chunk_size 4000;

application live { live on; drop_idle_publisher 10s; wait_video on; wait_key on; }

application hls { live on; hls on; hls_path /tmp/hls; hls_fragment 1s; hls_fragment_slicing aligned; }

} }

But the on_publish is not called in case of hls stream. Is it a problem in the config or a feature which is not implemented yet?

Thanks

— Reply to this email directly or view it on GitHub https://github.com/arut/nginx-rtmp-module/issues/448.