修复级联查看国标录像
parent
debfac58b0
commit
045f2334d0
|
@ -498,6 +498,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
||||||
String endTimeStr = DateUtil.urlFormatter.format(end);
|
String endTimeStr = DateUtil.urlFormatter.format(end);
|
||||||
String stream = device.getDeviceId() + "_" + channelId + "_" + startTimeStr + "_" + endTimeStr;
|
String stream = device.getDeviceId() + "_" + channelId + "_" + startTimeStr + "_" + endTimeStr;
|
||||||
SSRCInfo ssrcInfo = mediaServerService.openRTPServer(mediaServerItem, stream, null, device.isSsrcCheck(), true, 0,false, false, device.getStreamModeForParam());
|
SSRCInfo ssrcInfo = mediaServerService.openRTPServer(mediaServerItem, stream, null, device.isSsrcCheck(), true, 0,false, false, device.getStreamModeForParam());
|
||||||
|
sendRtpItem.setStream(stream);
|
||||||
// 写入redis, 超时时回复
|
// 写入redis, 超时时回复
|
||||||
redisCatchStorage.updateSendRTPSever(sendRtpItem);
|
redisCatchStorage.updateSendRTPSever(sendRtpItem);
|
||||||
playService.playBack(mediaServerItem, ssrcInfo, device.getDeviceId(), channelId, DateUtil.formatter.format(start),
|
playService.playBack(mediaServerItem, ssrcInfo, device.getDeviceId(), channelId, DateUtil.formatter.format(start),
|
||||||
|
@ -1006,7 +1007,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
||||||
Media media = mediaDescription.getMedia();
|
Media media = mediaDescription.getMedia();
|
||||||
|
|
||||||
Vector mediaFormats = media.getMediaFormats(false);
|
Vector mediaFormats = media.getMediaFormats(false);
|
||||||
if (mediaFormats.contains("8")) {
|
// if (mediaFormats.contains("8")) {
|
||||||
port = media.getMediaPort();
|
port = media.getMediaPort();
|
||||||
String protocol = media.getProtocol();
|
String protocol = media.getProtocol();
|
||||||
// 区分TCP发流还是udp, 当前默认udp
|
// 区分TCP发流还是udp, 当前默认udp
|
||||||
|
@ -1022,7 +1023,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
if (port == -1) {
|
if (port == -1) {
|
||||||
logger.info("不支持的媒体格式,返回415");
|
logger.info("不支持的媒体格式,返回415");
|
||||||
|
|
Loading…
Reference in New Issue