我无法让 NGINX RTMP 模块手动录制直播流,即仅当我调用 https://mydomain:8080/control/record/start?app=live&name=name&rec=rec或https://mydomain:8080 /control/record/stop?app=live&name=name&rec=rec。
问题是 NGINX 总是记录流,我不能告诉它什么时候开始。
这是我的 NGINX 配置文件:
rtmp {
server {
listen 1935;
chunk_size 4000;
notify_method get;
application live {
live on;
hls on;
hls_path /hls/;
hls_fragment 20s;
hls_playlist_length 60;
recorder rec {
record all manual;
record_path /mp4/;
record_suffix .flv;
record_notify on;
}
}
}
帮助,有人吗?
谢谢,佩德罗