面试录制视频上传回调接口

This commit is contained in:
pserimal
2023-06-21 20:26:39 +08:00
parent d38d2d87cd
commit dc220e12a6
13 changed files with 347 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
package com.cool.store.service;
import com.cool.store.request.TRTCVideoCallBackReq;
public interface TRTCVideoService {
/**
* 音视频上传成功后的回调处理
*/
void handleVideoCallBack(TRTCVideoCallBackReq req);
}

View File

@@ -0,0 +1,26 @@
package com.cool.store.service.impl;
import com.cool.store.mapper.TRTCVideoCallBackMapper;
import com.cool.store.request.TRTCVideoCallBackReq;
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 TRTCVideoCallBackMapper videoCallBackMapper;
/**
* 音视频上传成功后的回调处理
*/
@Override
public void handleVideoCallBack(TRTCVideoCallBackReq req) {
//将视频播放地址拼接到对应的面试信息字段中
String videoUrl = req.getEventInfo().getPayLoad().getTencentVod().getVideoUrl();
String roomId = req.getEventInfo().getRoomId();
videoCallBackMapper.addVideoUrl(roomId, videoUrl);
}
}