| | |
| | | param.put("rtp_proxy.port_range", mediaServerItem.getRtpPortRange().replace(",", "-")); |
| | | } |
| | | |
| | | if (mediaServerItem.getRecordPath() != null) { |
| | | if (!ObjectUtils.isEmpty(mediaServerItem.getRecordPath())) { |
| | | File recordPathFile = new File(mediaServerItem.getRecordPath()); |
| | | param.put("protocol.mp4_save_path", recordPathFile.getParentFile().getPath()); |
| | | param.put("protocol.downloadRoot", recordPathFile.getParentFile().getPath()); |
| | |
| | | ssrcFactory.initMediaServerSSRC(mediaServerItem.getId(), null); |
| | | String key = VideoManagerConstants.MEDIA_SERVER_PREFIX + userSetting.getServerId() + "_" + mediaServerItem.getId(); |
| | | redisTemplate.opsForValue().set(key, mediaServerItem); |
| | | resetOnlineServerItem(mediaServerItem); |
| | | clearRTPServer(mediaServerItem); |
| | | } |
| | | final String zlmKeepaliveKey = zlmKeepaliveKeyPrefix + mediaServerItem.getId(); |