| | |
| | | @Value("${media.secret}") |
| | | private String mediaSecret; |
| | | |
| | | @Value("${media.streamNoneReaderDelayMS}") |
| | | private String streamNoneReaderDelayMS; |
| | | |
| | | @Value("${sip.ip}") |
| | | private String sipIP; |
| | | |
| | |
| | | MediaServerConfig mediaServerConfig = getMediaServerConfig(); |
| | | if (mediaServerConfig != null) { |
| | | logger.info("zlm接入成功..."); |
| | | storager.updateMediaInfo(mediaServerConfig); |
| | | logger.info("设置zlm..."); |
| | | saveZLMConfig(); |
| | | mediaServerConfig = getMediaServerConfig(); |
| | | storager.updateMediaInfo(mediaServerConfig); |
| | | |
| | | } |
| | | } |
| | |
| | | } catch (InterruptedException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | getMediaServerConfig(); |
| | | mediaServerConfig = getMediaServerConfig(); |
| | | } |
| | | return mediaServerConfig; |
| | | } |
| | |
| | | param.put("hook.on_stream_none_reader",String.format("%s/on_stream_none_reader", hookPrex)); |
| | | param.put("hook.on_stream_not_found",String.format("%s/on_stream_not_found", hookPrex)); |
| | | param.put("hook.timeoutSec","20"); |
| | | param.put("general.streamNoneReaderDelayMS",streamNoneReaderDelayMS); |
| | | |
| | | JSONObject responseJSON = zlmresTfulUtils.setServerConfig(param); |
| | | |