From 01727f8e3f5f0e6ddaf2a202ca037cf24cd26f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Fri, 11 Jul 2025 10:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=9A=E6=97=B6=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tuoheng/steam/controller/StreamRecordController.java | 4 +++- src/main/resources/application.properties | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/tuoheng/steam/controller/StreamRecordController.java b/src/main/java/com/tuoheng/steam/controller/StreamRecordController.java index 66be226..ecd71d1 100644 --- a/src/main/java/com/tuoheng/steam/controller/StreamRecordController.java +++ b/src/main/java/com/tuoheng/steam/controller/StreamRecordController.java @@ -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://")) { // 先删除端口号 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b0ec458..8958fcf 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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 #通过注入