diff --git a/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/HookConfig.java b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/HookConfig.java new file mode 100644 index 0000000..667367c --- /dev/null +++ b/zlmediakit-service/src/main/java/cn/skcks/docking/gb28181/media/dto/config/HookConfig.java @@ -0,0 +1,34 @@ +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 HookConfig { + private Double aliveInterval; + private Integer enable; + private String onFlowReport; + private String onHttpAccess; + private String onPlay; + private String onPublish; + private String onRecordMp4; + private String onRecordTs; + private String onRtpServerTimeout; + private String onRtspAuth; + private String onRtspRealm; + private String onSendRtpStopped; + private String onServerExited; + private String onServerKeepalive; + private String onServerStarted; + private String onShellLogin; + private String onStreamChanged; + private String onStreamNoneReader; + private String onStreamNotFound; + private Long retry; + private Double retryDelay; + @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 0cc7dab..c6f269d 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 @@ -21,5 +21,6 @@ public class ServerConfig { @JsonUnwrapped(prefix = "hls.") private HlsConfig hls; - + @JsonUnwrapped(prefix = "hook.") + private HookConfig hook; }