This commit is contained in:
zhangchenbiao
2024-03-12 11:23:18 +08:00
parent 949960ce6d
commit e5d4b5266d
11 changed files with 323 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
package com.cool.store.service;
import com.cool.store.dto.trtc.callback.VideoCallBackDTO;
public interface TRTCVideoService {
void handleVideoCallBack(VideoCallBackDTO videoCallBackDTO);
}

View File

@@ -0,0 +1,26 @@
package com.cool.store.service.impl;
import com.cool.store.dto.trtc.callback.VideoCallBackDTO;
import com.cool.store.service.TRTCVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class TRTCVideoServiceImpl implements TRTCVideoService {
/*@Autowired
private HyPartnerInterviewMapper interviewMapper;*/
@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();
//interviewMapper.addVideoUrl(roomId, videoUrl);
}
}