diff --git a/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/RtpProxyConfig.java b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/RtpProxyConfig.java new file mode 100644 index 0000000..5cb90d3 --- /dev/null +++ b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/RtpProxyConfig.java @@ -0,0 +1,22 @@ +package cn.skcks.docking.gb28181.media.dto.config; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; +import com.fasterxml.jackson.databind.annotation.JsonNaming; +import lombok.Data; + +@Data +@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) +public class RtpProxyConfig { + @JsonProperty("dumpDir") + private String dumpDir; + private Integer gopCache; + private Integer h264Pt; + private Integer h265Pt; + private Integer opusPt; + private Integer port; + private String portRange; + private Integer psPt; + @JsonProperty("timeoutSec") + private Integer timeoutSec; +} 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 9c2251b..fc10bba 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 @@ -44,4 +44,7 @@ public class ServerConfig { @JsonUnwrapped(prefix = "rtp.") private RtpConfig rtp; + + @JsonUnwrapped(prefix = "rtp_proxy.") + private RtpProxyConfig rtpProxy; }