|
@@ -88,7 +88,7 @@ public class MediaDeviceController implements ReactiveServiceCrudController<Medi
|
|
|
@PathVariable String channelId) {
|
|
@PathVariable String channelId) {
|
|
|
return
|
|
return
|
|
|
//获取设备信息
|
|
//获取设备信息
|
|
|
- Mono.justOrEmpty(redisCacheStorage.getDevice(deviceId))
|
|
|
|
|
|
|
+ mediaDeviceService.findById(deviceId)
|
|
|
.switchIfEmpty(Mono.error(new BusinessException("设备未注册")))
|
|
.switchIfEmpty(Mono.error(new BusinessException("设备未注册")))
|
|
|
//获取设备相连的媒体流服务器信息
|
|
//获取设备相连的媒体流服务器信息
|
|
|
.flatMap(playService::getNewMediaServerItem)
|
|
.flatMap(playService::getNewMediaServerItem)
|