|
@@ -9,6 +9,7 @@ import com.yonge.cooleshow.biz.dal.entity.LiveRoomVideo;
|
|
import com.yonge.cooleshow.biz.dal.entity.RecordNotify;
|
|
import com.yonge.cooleshow.biz.dal.entity.RecordNotify;
|
|
import com.yonge.cooleshow.biz.dal.service.LiveRoomService;
|
|
import com.yonge.cooleshow.biz.dal.service.LiveRoomService;
|
|
import com.yonge.cooleshow.biz.dal.service.LiveRoomVideoService;
|
|
import com.yonge.cooleshow.biz.dal.service.LiveRoomVideoService;
|
|
|
|
+import com.yonge.toolset.thirdparty.storage.StoragePluginContext;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -32,6 +33,8 @@ public class LiveRoomVideoServiceImpl extends ServiceImpl<LiveRoomVideoDao, Live
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private LiveRoomService liveRoomService;
|
|
private LiveRoomService liveRoomService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private StoragePluginContext storagePluginContext;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public LiveRoomVideoDao getDao() {
|
|
public LiveRoomVideoDao getDao() {
|
|
@@ -59,7 +62,7 @@ public class LiveRoomVideoServiceImpl extends ServiceImpl<LiveRoomVideoDao, Live
|
|
if (recordNotify.getCode().equals(200)) {
|
|
if (recordNotify.getCode().equals(200)) {
|
|
if (Objects.nonNull(recordNotify.getType())) {
|
|
if (Objects.nonNull(recordNotify.getType())) {
|
|
//云端录制文件地址
|
|
//云端录制文件地址
|
|
- String fileUrl = recordNotify.getOutput().getFileUrl();
|
|
|
|
|
|
+ String fileUrl = storagePluginContext.getPublicUrl(recordNotify.getOutput().getFileUrl());
|
|
//房间uid
|
|
//房间uid
|
|
String roomUId = recordNotify.getRoomId();
|
|
String roomUId = recordNotify.getRoomId();
|
|
//融云唯一id标识
|
|
//融云唯一id标识
|