|
@@ -13,6 +13,7 @@ import com.ym.pojo.RecordConfig;
|
|
import com.ym.pojo.RecordNotify;
|
|
import com.ym.pojo.RecordNotify;
|
|
import com.ym.service.LiveRoomService;
|
|
import com.ym.service.LiveRoomService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
import org.redisson.api.RBucket;
|
|
import org.redisson.api.RBucket;
|
|
import org.redisson.api.RedissonClient;
|
|
import org.redisson.api.RedissonClient;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -170,7 +171,14 @@ public class LiveRoomServiceImpl implements LiveRoomService {
|
|
Date now = new Date();
|
|
Date now = new Date();
|
|
video.setEndTime(now);
|
|
video.setEndTime(now);
|
|
video.setType(2);
|
|
video.setType(2);
|
|
- video.setUrl(fileUrl);
|
|
|
|
|
|
+ //逗号拼接录制视频地址
|
|
|
|
+ String videoUrl = video.getUrl();
|
|
|
|
+ if (StringUtils.isEmpty(videoUrl)) {
|
|
|
|
+ videoUrl = fileUrl;
|
|
|
|
+ } else {
|
|
|
|
+ videoUrl = videoUrl + "," + fileUrl;
|
|
|
|
+ }
|
|
|
|
+ video.setUrl(videoUrl);
|
|
video.setCreatedTime(now);
|
|
video.setCreatedTime(now);
|
|
imLiveRoomVideoService.updateById(video);
|
|
imLiveRoomVideoService.updateById(video);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|