回放流id 附带 ssrc

This commit is contained in:
zxb 2023-10-10 14:32:29 +08:00
parent 23f2e48ba1
commit 7b78e719bf

View File

@ -469,7 +469,7 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
sendRtpItem.setPlayType(InviteStreamType.PLAYBACK);
String startTimeStr = DateUtil.urlFormatter.format(start);
String endTimeStr = DateUtil.urlFormatter.format(end);
String stream = device.getDeviceId() + "_" + channelId + "_" + startTimeStr + "_" + endTimeStr;
String stream = device.getDeviceId() + "_" + channelId + "_" + startTimeStr + "_" + endTimeStr + "_" + ssrc;
SSRCInfo ssrcInfo = mediaServerService.openRTPServer(mediaServerItem, stream, null, device.isSsrcCheck(), true, 0, false, device.getStreamModeForParam());
sendRtpItem.setStreamId(ssrcInfo.getStream());
// 写入redis 超时时回复