|
@@ -481,8 +481,7 @@ public class LiveRoomServiceImpl extends ServiceImpl<LiveRoomDao, LiveRoom> impl
|
|
DateTime now = DateTime.now();
|
|
DateTime now = DateTime.now();
|
|
|
|
|
|
RTCRequest.RecordStart recordStart = RTCRequest.RecordStart.builder()
|
|
RTCRequest.RecordStart recordStart = RTCRequest.RecordStart.builder()
|
|
- .streamName(MessageFormat.format("{0}_{1}", room.getRoomUid(),
|
|
|
|
- imGroupService.getImUserId(room.getSpeakerId().toString(),ClientEnum.TEACHER.getCode())))
|
|
|
|
|
|
+ .streamName(getStreamId(room.getRoomUid(),room.getSpeakerId()))
|
|
.extra("")
|
|
.extra("")
|
|
.startTime(now.toDateTime().getMillis())
|
|
.startTime(now.toDateTime().getMillis())
|
|
.endTime(now.plusDays(1).toDateTime().getMillis())
|
|
.endTime(now.plusDays(1).toDateTime().getMillis())
|
|
@@ -1733,7 +1732,7 @@ public class LiveRoomServiceImpl extends ServiceImpl<LiveRoomDao, LiveRoom> impl
|
|
}
|
|
}
|
|
|
|
|
|
private String getStreamId(String roomUid, Long speakerId) {
|
|
private String getStreamId(String roomUid, Long speakerId) {
|
|
- return roomUid + "_" + speakerId;
|
|
|
|
|
|
+ return roomUid + "_" + imGroupService.getImUserId(speakerId,ClientEnum.TEACHER);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|