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
Has the original poster solved it? I encountered the same problem, please give me some advice