zlm protocol 配置

This commit is contained in:
shikong 2023-08-18 14:47:13 +08:00
parent 3cb10100a3
commit d1f95c5598
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,31 @@
package cn.skcks.docking.gb28181.media.dto.config;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
@Data
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class ProtocolConfig {
private Integer addMuteAudio;
private Integer autoClose;
private Integer continuePushMs;
private Integer enableAudio;
private Integer enableFmp4;
private Integer enableHls;
private Integer enableHlsFmp4;
private Integer enableMp4;
private Integer enableRtmp;
private Integer enableRtsp;
private Integer enableTs;
private Integer fmp4Demand;
private Integer hlsDemand;
private String hlsSavePath;
private Integer modifyStamp;
private Integer mp4AsPlayer;
private Integer mp4MaxSecond;
private String mp4SavePath;
private Integer rtmpDemand;
private Integer rtspDemand;
private Integer tsDemand;
}

View File

@ -29,4 +29,7 @@ public class ServerConfig {
@JsonUnwrapped(prefix = "multicast.") @JsonUnwrapped(prefix = "multicast.")
private MulticastConfig multicast; private MulticastConfig multicast;
@JsonUnwrapped(prefix = "protocol.")
private ProtocolConfig protocol;
} }