|
@@ -108,6 +108,14 @@ public class LiveRoomServiceImpl implements LiveRoomService {
|
|
|
|
|
|
@Override
|
|
|
public void startRecord(String roomId, String videoResolution) throws Exception {
|
|
|
+
|
|
|
+ ImLiveRoomVideo video = imLiveRoomVideoService.getOne(new QueryWrapper<ImLiveRoomVideo>().eq("room_uid_", roomId).last("limit 1"));
|
|
|
+
|
|
|
+ if (video != null) {
|
|
|
+ log.error("已经开启了录制");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
log.error("开始录制直播:roomId : {} ", roomId);
|
|
|
JSONObject paramJson = new JSONObject();
|
|
|
paramJson.put("sessionId", getRoomSessionId(roomId));
|