| | |
| | | import com.genersoft.iot.vmp.media.zlm.ZLMServerConfig; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.HashMap; |
| | | |
| | |
| | | private String secret; |
| | | |
| | | @Schema(description = "keepalive hook触发间隔,单位秒") |
| | | private int hookAliveInterval; |
| | | private Float hookAliveInterval; |
| | | |
| | | @Schema(description = "是否使用多端口模式") |
| | | private boolean rtpEnable; |
| | |
| | | |
| | | @Schema(description = "多端口RTP收流端口范围") |
| | | private String rtpPortRange; |
| | | |
| | | @Schema(description = "RTP发流端口范围") |
| | | private String sendRtpPortRange; |
| | | |
| | | @Schema(description = "assist服务端口") |
| | | private int recordAssistPort; |
| | |
| | | hookAliveInterval = zlmServerConfig.getHookAliveInterval(); |
| | | rtpEnable = false; // 默认使用单端口;直到用户自己设置开启多端口 |
| | | rtpPortRange = zlmServerConfig.getPortRange().replace("_",","); // 默认使用30000,30500作为级联时发送流的端口号 |
| | | sendRtpPortRange = "30000,30500"; // 默认使用30000,30500作为级联时发送流的端口号 |
| | | recordAssistPort = 0; // 默认关闭 |
| | | |
| | | } |
| | |
| | | this.lastKeepaliveTime = lastKeepaliveTime; |
| | | } |
| | | |
| | | public String getSendRtpPortRange() { |
| | | return sendRtpPortRange; |
| | | } |
| | | |
| | | public void setSendRtpPortRange(String sendRtpPortRange) { |
| | | this.sendRtpPortRange = sendRtpPortRange; |
| | | } |
| | | |
| | | public int getHookAliveInterval() { |
| | | public Float getHookAliveInterval() { |
| | | return hookAliveInterval; |
| | | } |
| | | |
| | | public void setHookAliveInterval(int hookAliveInterval) { |
| | | public void setHookAliveInterval(Float hookAliveInterval) { |
| | | this.hookAliveInterval = hookAliveInterval; |
| | | } |
| | | } |