Commit 0e826e3448a21bcb68f52b3e87ecb00d3070d977
1 parent
8f7db635
优化--端口获取失败之时(如zlm连接失败),不进行invite点播消息的发送
Showing
1 changed file
with
5 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
| ... | ... | @@ -253,6 +253,11 @@ public class PlayServiceImpl implements IPlayService { |
| 253 | 253 | }, userSetting.getPlayTimeout()); |
| 254 | 254 | final String ssrc = ssrcInfo.getSsrc(); |
| 255 | 255 | final String stream = ssrcInfo.getStream(); |
| 256 | + //端口获取失败的ssrcInfo 没有必要发送点播指令 | |
| 257 | + if(ssrcInfo.getPort() <= 0){ | |
| 258 | + logger.info("[点播端口分配异常],deviceId={},channelId={},ssrcInfo={}", device.getDeviceId(), channelId, ssrcInfo); | |
| 259 | + return; | |
| 260 | + } | |
| 256 | 261 | cmder.playStreamCmd(mediaServerItem, ssrcInfo, device, channelId, (MediaServerItem mediaServerItemInuse, JSONObject response) -> { |
| 257 | 262 | logger.info("收到订阅消息: " + response.toJSONString()); |
| 258 | 263 | dynamicTask.stop(timeOutTaskKey); | ... | ... |