rtmp.j2 1019 Bytes
Newer Older
1
application {{ rtmp.key }} {
hatsch's avatar
hatsch committed
2

3
4
5
6
7
8
        #GENERAL STREAM SETTING
        wait_key on;
        interleave on;
        sync 10ms;
        drop_idle_publisher 60s;
        live on;
hatsch's avatar
hatsch committed
9

10
11
12
        #HLS SETTINGS
        hls on;
        #hls_dvr on;
hatsch's avatar
hatsch committed
13
14
        hls_cleanup on;        
        hls_path /var/www/{{ site.key }}/hls/{{rtmp.key}}/;
15
        hls_type live;
hatsch's avatar
hatsch committed
16
17
18
        hls_nested on;
        hls_base_url http://{{ site.key }}/hls/{{ rtmp.key }}/;
        hls_fragment_naming system;
19
        hls_fragment_slicing plain;
hatsch's avatar
hatsch committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
        hls_continuous on;    
        hls_playlist_length 10s; 
        hls_fragment 1s;

        #ALLOW SETTINGS
        allow publish all;
        allow play all;


        #RECORD SETTINGS
        #record all;
        #record_path /var/www/{{ site.key }}/data/record;
        #record_suffix -%d-%b-%y-%T.flv;

34
35
36
37
38
39
40
41
        meta off;
        #hls_allow_client_cache enabled;

        #### 
        # Security
        #
        on_publish http://{{ site.key }}/auth/{{ rtmp.key }}/{{ rtmp.value.key }};
        }