修复国标视频点播三种点播方式(自动点播,上级点播,接口点播)并发情况下失败的问题

This commit is contained in:
648540858
2023-05-06 17:59:12 +08:00
parent e2f9ee8f7b
commit 490c55381f
3 changed files with 0 additions and 47 deletions

View File

@@ -124,9 +124,7 @@ public class PlayServiceImpl implements IPlayService {
InviteInfo inviteInfo = inviteStreamService.getInviteInfoByDeviceAndChannel(InviteSessionType.PLAY, deviceId, channelId);
if (inviteInfo != null ) {
System.out.println("inviteInfo 已存在");
if (inviteInfo.getStreamInfo() == null) {
System.out.println("inviteInfo 已存在, StreamInfo 不存在,添加回调等待");
// 点播发起了但是尚未成功, 仅注册回调等待结果即可
inviteStreamService.once(InviteSessionType.PLAY, deviceId, channelId, null, callback);
return inviteInfo.getSsrcInfo();