|
@@ -163,11 +163,13 @@ namespace WingRtcService
|
|
|
var deviceCode = room.DeviceInfos.FirstOrDefault()?.Code ?? string.Empty;
|
|
|
var existedRoom = _rtcRoomManager.GetInitiatingRoomByDeviceCode(deviceCode, room.LiveRoomCode);
|
|
|
var rtcRoomId = room.RtcRoomId;
|
|
|
+ var existedLiveRooms = new List<LiveMemberDTO>();
|
|
|
if (rtcRoomId == 0 || room.Status != LiveRoomStatus.Initiating)
|
|
|
{
|
|
|
if (existedRoom != null)
|
|
|
{
|
|
|
rtcRoomId = existedRoom.RtcRoomId;
|
|
|
+ existedLiveRooms = existedRoom.GetRoomMemberInfos() ?? new List<LiveMemberDTO>();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -185,7 +187,7 @@ namespace WingRtcService
|
|
|
await _deviceForwardService.GetDeviceVideoInfosAsync(new GetDeviceVideoInfosRequest { DeviceCode = deviceCode });
|
|
|
}
|
|
|
var appId = TRTCHelper.GetAppId();
|
|
|
- room.Initiate(initiatorCode, rtcRoomId, appId, request.LoginSource, true, new List<LiveMemberDTO>());
|
|
|
+ room.Initiate(initiatorCode, rtcRoomId, appId, request.LoginSource, true, existedLiveRooms);
|
|
|
if (room.UserInfos != null && room.UserInfos.Any())
|
|
|
{
|
|
|
foreach (var user in room.UserInfos)
|