|
@@ -8,6 +8,8 @@ import com.ym.mec.biz.service.ImLiveRoomVideoService;
|
|
|
import com.ym.mec.common.entity.ImRoomMessage;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
import com.ym.mec.im.IMHelper;
|
|
|
+import com.ym.mec.thirdparty.storage.StoragePluginContext;
|
|
|
+import com.ym.mec.thirdparty.storage.provider.KS3StoragePlugin;
|
|
|
import com.ym.pojo.IMApiResultInfo;
|
|
|
import com.ym.pojo.IMUserOnlineInfo;
|
|
|
import com.ym.pojo.RecordConfig;
|
|
@@ -40,6 +42,8 @@ public class LiveRoomServiceImpl implements LiveRoomService {
|
|
|
private RedissonClient redissonClient;
|
|
|
@Autowired
|
|
|
private ImLiveRoomVideoService imLiveRoomVideoService;
|
|
|
+ @Autowired
|
|
|
+ private StoragePluginContext storagePluginContext;
|
|
|
|
|
|
/**
|
|
|
* 创建房间-聊天室
|
|
@@ -158,7 +162,7 @@ public class LiveRoomServiceImpl implements LiveRoomService {
|
|
|
if (recordNotify.getCode().equals(200)) {
|
|
|
if (Objects.nonNull(recordNotify.getType()) && recordNotify.getType() == 4) {
|
|
|
//云端录制文件地址
|
|
|
- String fileUrl = recordNotify.getOutput().getFileUrl();
|
|
|
+ String fileUrl = storagePluginContext.getPublicUrl(recordNotify.getOutput().getFileUrl());
|
|
|
String roomId = recordNotify.getRoomId();
|
|
|
//写入数据库
|
|
|
try {
|