From a7e984f696f4eebfb5a8ae33750b0952a7f106c9 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期日, 04 八月 2024 20:36:27 +0800 Subject: [PATCH] Merge pull request #1555 from iwanlebron/iwanlebron-patch-4 --- src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerFactory.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerFactory.java b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerFactory.java index 3ba48d3..b2b6e67 100755 --- a/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerFactory.java +++ b/src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMServerFactory.java @@ -17,7 +17,7 @@ @Component public class ZLMServerFactory { - private Logger logger = LoggerFactory.getLogger("ZLMServerFactory"); + private final static Logger logger = LoggerFactory.getLogger(ZLMServerFactory.class); @Autowired private ZLMRESTfulUtils zlmresTfulUtils; @@ -264,4 +264,13 @@ } return result; } + + public JSONObject stopSendRtpStream(MediaServer mediaServerItem, SendRtpItem sendRtpItem) { + Map<String, Object> param = new HashMap<>(); + param.put("vhost", "__defaultVhost__"); + param.put("app", sendRtpItem.getApp()); + param.put("stream", sendRtpItem.getStream()); + param.put("ssrc", sendRtpItem.getSsrc()); + return zlmresTfulUtils.stopSendRtp(mediaServerItem, param); + } } -- Gitblit v1.8.0