zlm hook 配置

This commit is contained in:
shikong 2023-08-18 11:52:32 +08:00
parent aa71e4c019
commit adb70ec606
2 changed files with 36 additions and 1 deletions

View File

@ -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;
}

View File

@ -21,5 +21,6 @@ public class ServerConfig {
@JsonUnwrapped(prefix = "hls.")
private HlsConfig hls;
@JsonUnwrapped(prefix = "hook.")
private HookConfig hook;
}