File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ vhost __defaultVhost__ {
5757 enabled on;
5858 # .flv .mp4
5959 #dvr_path ./objs/nginx/html/[app]/[stream]/[timestamp].flv;
60- dvr_path ./objs/nginx/html/dvr/[app]/[stream]/[timestamp].mp4;
60+ dvr_path ./objs/nginx/html/dvr/[app]/[2006]-[01]-[02]/[ stream]/[timestamp].mp4;
6161 dvr_plan segment;
6262 # 分割时长 30=30秒 900=900秒
6363 dvr_duration 90;
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ rtc_server {
2323 candidate $CANDIDATE;
2424}
2525vhost __defaultVhost__ {
26+ publish {
27+ # 30秒客户端主动关闭推流端
28+ kickoff_for_idle 30;
29+ }
2630 hls {
2731 enabled off;
2832 #hls_fragment 0.2;
@@ -36,6 +40,12 @@ vhost __defaultVhost__ {
3640 http_remux {
3741 enabled on;
3842 mount [vhost]/[app]/[stream].flv;
43+ has_audio on;
44+ has_video on;
45+ # 猜测是否存在音视频轨
46+ guess_has_av on;
47+ # 丢弃不匹配配置的帧
48+ drop_if_not_match off;
3949 }
4050 rtc {
4151 enabled on;
You can’t perform that action at this time.
0 commit comments