腾讯云音视频上窜回调防重

This commit is contained in:
pserimal
2023-06-30 14:54:51 +08:00
parent a927cab8ee
commit df0a5be343
5 changed files with 16 additions and 4 deletions

View File

@@ -26,6 +26,11 @@ public class TRTCVideoServiceImpl implements TRTCVideoService {
@Override
public void handleVideoCallBack(VideoCallBackDTO videoCallBackDTO) {
//防重
Boolean hasVideoUrl = interviewMapper.hasVideoUrls(videoCallBackDTO.getEventInfo().getPayload().getTencentVod().getVideoUrl());
if (hasVideoUrl) {
return;
}
//将视频播放地址拼接到对应的面试信息字段中
String videoUrl = videoCallBackDTO.getEventInfo().getPayload().getTencentVod().getVideoUrl();
String roomId = videoCallBackDTO.getEventInfo().getRoomId();