update
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.cool.store.service;
|
||||
|
||||
import com.cool.store.dto.trtc.callback.VideoCallBackDTO;
|
||||
|
||||
public interface TRTCVideoService {
|
||||
|
||||
void handleVideoCallBack(VideoCallBackDTO videoCallBackDTO);
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user