面试录制视频上传回调接口
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.cool.store.service;
|
||||
|
||||
import com.cool.store.request.TRTCVideoCallBackReq;
|
||||
|
||||
public interface TRTCVideoService {
|
||||
|
||||
/**
|
||||
* 音视频上传成功后的回调处理
|
||||
*/
|
||||
void handleVideoCallBack(TRTCVideoCallBackReq req);
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user