From bb5e4ffbacdd17bb9163f649de9290271e0ab777 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Fri, 18 Aug 2023 16:40:53 +0800 Subject: [PATCH] =?UTF-8?q?zlm=20srt=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gb28181/media/dto/config/ServerConfig.java | 3 +++ .../docking/gb28181/media/dto/config/SrtConfig.java | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/SrtConfig.java diff --git a/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/ServerConfig.java b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/ServerConfig.java index 1c079eb..2837ffe 100644 --- a/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/ServerConfig.java +++ b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/ServerConfig.java @@ -53,4 +53,7 @@ public class ServerConfig { @JsonUnwrapped(prefix = "shell.") private ShellConfig shell; + + @JsonUnwrapped(prefix = "srt.") + private SrtConfig srtConfig; } diff --git a/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/SrtConfig.java b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/SrtConfig.java new file mode 100644 index 0000000..bc27a41 --- /dev/null +++ b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/SrtConfig.java @@ -0,0 +1,11 @@ +package cn.skcks.docking.gb28181.media.dto.config; + +import lombok.Data; + +@Data +public class SrtConfig { + private Integer latencyMul; + private Integer pktBufSize; + private Integer port; + private Integer timeoutSec; +}