Jeremy 2 лет назад
Родитель
Сommit
1809af7533
1 измененных файлов с 12 добавлено и 2 удалено
  1. 12 2
      Service/DeviceService.cs

+ 12 - 2
Service/DeviceService.cs

@@ -1307,8 +1307,13 @@ namespace WingDeviceService.Service
                         return new JoinDeviceLiveRoomResult
                         {
                             RoomNo = liveRoom.RtcRoomId,
-                            //RtmpUrl = deviceMemberInfo.LiveData.RtmpPullUrl,
                             ReportStateIntervalSeconds = _reportStateIntervalSeconds,
+                            VideoDeviceInfos = deviceMemberInfo.VideoDeviceInfos?.Select(x => new VideoDeviceInfoDTO
+                            {
+                                VideoDeviceId = x.VideoDeviceId,
+                                VideoDeviceSourceType = x.VideoDeviceSourceType,
+                                LiveData = x.LiveData
+                            })?.ToList() ?? new List<VideoDeviceInfoDTO>(),
                         };
                     }
                 }
@@ -1353,8 +1358,13 @@ namespace WingDeviceService.Service
             return new JoinDeviceLiveRoomResult
             {
                 RoomNo = initiateResult.RtcRoomId,
-                //RtmpUrl = deviceMemberInfo.LiveData.RtmpPullUrl,
                 ReportStateIntervalSeconds = _reportStateIntervalSeconds,
+                VideoDeviceInfos = deviceMemberInfo.VideoDeviceInfos?.Select(x => new VideoDeviceInfoDTO
+                {
+                    VideoDeviceId = x.VideoDeviceId,
+                    VideoDeviceSourceType = x.VideoDeviceSourceType,
+                    LiveData = x.LiveData
+                })?.ToList() ?? new List<VideoDeviceInfoDTO>(),
             };
         }