|
@@ -121,6 +121,7 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
ZlmHttpHookSubscribe.Event hookEvent, SipSubscribe.Event errorEvent,
|
|
|
Runnable timeoutCallback) {
|
|
|
if (mediaServerItem == null) {
|
|
|
+ logger.info("无法找到zlm服务");
|
|
|
throw new ControllerException(ErrorCode.ERROR100.getCode(), "未找到可用的zlm");
|
|
|
}
|
|
|
String key = DeferredResultHolder.CALLBACK_CMD_PLAY + deviceId + channelId;
|
|
@@ -132,6 +133,7 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
StreamInfo streamInfo = redisCatchStorage.queryPlayByDevice(deviceId, channelId);
|
|
|
|
|
|
if (streamInfo != null) {
|
|
|
+ logger.info("可以找到对应的stream");
|
|
|
String streamId = streamInfo.getStream();
|
|
|
if (streamId == null) {
|
|
|
WVPResult wvpResult = new WVPResult();
|
|
@@ -176,11 +178,11 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
streamInfo = null;
|
|
|
}
|
|
|
} else {
|
|
|
+ logger.warn("获取rtpinfo失败");
|
|
|
//zlm连接失败
|
|
|
redisCatchStorage.stopPlay(streamInfo);
|
|
|
storager.stopPlay(streamInfo.getDeviceID(), streamInfo.getChannelId());
|
|
|
streamInfo = null;
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
if (streamInfo == null) {
|
|
@@ -210,6 +212,7 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
}
|
|
|
}, event -> {
|
|
|
// sip error错误
|
|
|
+ logger.warn("sip 错误,点播失败");
|
|
|
WVPResult wvpResult = new WVPResult();
|
|
|
wvpResult.setCode(ErrorCode.ERROR100.getCode());
|
|
|
wvpResult.setMsg(String.format("点播失败, 错误码: %s, %s", event.statusCode, event.msg));
|
|
@@ -220,6 +223,7 @@ public class PlayServiceImpl implements IPlayService {
|
|
|
}
|
|
|
}, (code, msgStr) -> {
|
|
|
// invite点播超时
|
|
|
+ logger.warn("sip 点播超时");
|
|
|
WVPResult wvpResult = new WVPResult();
|
|
|
wvpResult.setCode(ErrorCode.ERROR100.getCode());
|
|
|
if (code == 0) {
|