优化--端口获取失败之时(如zlm连接失败),不进行invite点播消息的发送
This commit is contained in:
parent
8f7db635a3
commit
0e826e3448
@ -253,6 +253,11 @@ public class PlayServiceImpl implements IPlayService {
|
|||||||
}, userSetting.getPlayTimeout());
|
}, userSetting.getPlayTimeout());
|
||||||
final String ssrc = ssrcInfo.getSsrc();
|
final String ssrc = ssrcInfo.getSsrc();
|
||||||
final String stream = ssrcInfo.getStream();
|
final String stream = ssrcInfo.getStream();
|
||||||
|
//端口获取失败的ssrcInfo 没有必要发送点播指令
|
||||||
|
if(ssrcInfo.getPort() <= 0){
|
||||||
|
logger.info("[点播端口分配异常],deviceId={},channelId={},ssrcInfo={}", device.getDeviceId(), channelId, ssrcInfo);
|
||||||
|
return;
|
||||||
|
}
|
||||||
cmder.playStreamCmd(mediaServerItem, ssrcInfo, device, channelId, (MediaServerItem mediaServerItemInuse, JSONObject response) -> {
|
cmder.playStreamCmd(mediaServerItem, ssrcInfo, device, channelId, (MediaServerItem mediaServerItemInuse, JSONObject response) -> {
|
||||||
logger.info("收到订阅消息: " + response.toJSONString());
|
logger.info("收到订阅消息: " + response.toJSONString());
|
||||||
dynamicTask.stop(timeOutTaskKey);
|
dynamicTask.stop(timeOutTaskKey);
|
||||||
|
Loading…
Reference in New Issue
Block a user