添加定时删除功能

This commit is contained in:
孙小云 2025-07-11 10:43:11 +08:00
parent 4cb2c1c468
commit 01727f8e3f
2 changed files with 7 additions and 5 deletions

View File

@ -210,7 +210,9 @@ public class StreamRecordController {
url = url.replaceFirst("^https?://", "rtmp://");
// 删除末尾的 .flv
url = url.replaceFirst("\\.flv$", "");
if(url.contains("srs-jndsj")){
return url;
}
// 处理 RTMP URL
if (url.startsWith("rtmp://")) {
// 先删除端口号

View File

@ -9,7 +9,7 @@
#cangneiwai=false
#srs.domain = ""
#srs.name = ""
#
#大数据局
#spring.application.name=stream_server
#server.port = 8989
@ -31,10 +31,10 @@
#recordPath=/Users/sunpeng/workspace/stream/record
#livedates=7
#cangneiwai=false
#srs.domain = ""
#srs.name = ""
#srs.domain=
#srs.name=
#容器化部署
##容器化部署
#通过注入
srs.domain = STREAM.t-aaron.com
#通过注入