浏览代码

直播分流,调整

Jeremy 2 年之前
父节点
当前提交
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
                         return new JoinDeviceLiveRoomResult
                         {
                         {
                             RoomNo = liveRoom.RtcRoomId,
                             RoomNo = liveRoom.RtcRoomId,
-                            //RtmpUrl = deviceMemberInfo.LiveData.RtmpPullUrl,
                             ReportStateIntervalSeconds = _reportStateIntervalSeconds,
                             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
             return new JoinDeviceLiveRoomResult
             {
             {
                 RoomNo = initiateResult.RtcRoomId,
                 RoomNo = initiateResult.RtcRoomId,
-                //RtmpUrl = deviceMemberInfo.LiveData.RtmpPullUrl,
                 ReportStateIntervalSeconds = _reportStateIntervalSeconds,
                 ReportStateIntervalSeconds = _reportStateIntervalSeconds,
+                VideoDeviceInfos = deviceMemberInfo.VideoDeviceInfos?.Select(x => new VideoDeviceInfoDTO
+                {
+                    VideoDeviceId = x.VideoDeviceId,
+                    VideoDeviceSourceType = x.VideoDeviceSourceType,
+                    LiveData = x.LiveData
+                })?.ToList() ?? new List<VideoDeviceInfoDTO>(),
             };
             };
         }
         }