修复国标级联点播

pull/1642/head
648540858 2024-09-10 22:33:38 +08:00
parent 1b34787d3a
commit 09c668f017
2 changed files with 7 additions and 3 deletions

View File

@ -669,11 +669,9 @@ public class PlayServiceImpl implements IPlayService {
if (streamInfo != null) {
streamInfo.setStartTime(startTime);
streamInfo.setEndTime(endTime);
deviceChannelService.startPlay(channel.getId(), streamInfo.getStream());
InviteInfo inviteInfo = inviteStreamService.getInviteInfoByStream(InviteSessionType.PLAYBACK, mediaInfo.getStream());
if (inviteInfo != null) {
inviteInfo.setStatus(InviteSessionStatus.ok);
inviteInfo.setStreamInfo(streamInfo);
inviteStreamService.updateInviteInfo(inviteInfo);
}

View File

@ -52,8 +52,14 @@ public class SendRtpServerServiceImpl implements ISendRtpServerService {
if (localPort <= 0) {
throw new PlayException(javax.sip.message.Response.SERVER_INTERNAL_ERROR, "server internal error");
}
return SendRtpInfo.getInstance(localPort, mediaServer, ip, port, ssrc, null, platformId, channelId,
SendRtpInfo sendRtpInfo = SendRtpInfo.getInstance(localPort, mediaServer, ip, port, ssrc, null, platformId, channelId,
tcp, rtcp, userSetting.getServerId());
if (sendRtpInfo == null) {
return null;
}
sendRtpInfo.setApp(app);
sendRtpInfo.setStream(stream);
return sendRtpInfo;
}
@Override