search

Home  >  Q&A  >  body text

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.

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

高洛峰高洛峰2881 days ago753

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-16 17:18:07

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

    reply
    0
  • Cancelreply