How to write the configuration file of the nginx-rtmp-module module to dynamically change the push address when pushing the module? I hope you can give me some ideas. Thank you.
高洛峰
高洛峰 2017-05-16 17:16:07
0
1
685

application hls {

             live on;  
             hls on;  
             hls_path /tmp/app;  
             hls_fragment 2s;  #将每段的长度限定
         hls_playlist_length 6s;  #设置 HLS 播放列表长度。默认为 30 秒钟。
           
    record keyframes;  
            record_path /tmp;  
            record_max_size 1280M;  
            record_interval 86400s;  
            record_suffix .this.is.flv; 
       }  

After this configuration, the stream can be pushed to the server's "domain name"/hls/xxx. Now due to business reasons, "hls" needs to be dynamically configured. Is there anyone who can provide some ideas? Greatful. I have tried ~ .hls$ to configure before. . The result is an error

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
黄舟

Has the original poster solved it? I encountered the same problem, please give me some advice

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template