From c993a1571110a132207f213b1eb2ea83b7677322 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Tue, 16 Jan 2024 15:43:25 +0800 Subject: [PATCH] =?UTF-8?q?zlm=20service=20=E6=B7=BB=E5=8A=A0=20ffmpeg=20?= =?UTF-8?q?=E6=8B=89=E6=B5=81=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gb28181/media/proxy/ZlmMediaService.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/proxy/ZlmMediaService.java b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/proxy/ZlmMediaService.java index ee0a680..c737369 100644 --- a/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/proxy/ZlmMediaService.java +++ b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/proxy/ZlmMediaService.java @@ -159,5 +159,19 @@ public class ZlmMediaService { public GetRtpInfoResp getRtpInfo(String streamId){ return exchange.getRtpInfo(secret, streamId); } + + /** + * 功能:通过 fork FFmpeg 进程的方式拉流代理,支持任意协议 + */ + public ZlmResponse addFfmpegSource(AddFFmpegSource params){ + return exchange.addFFmpegSource(secret, params); + } + + /** + * 功能:关闭 ffmpeg 拉流代理 + */ + public ZlmResponse delFfmpegSource(String key){ + return exchange.delFFmpegSource(secret, key); + } }