| | |
| | | Runnable runnable = dynamicTask.get(key); |
| | | if (runnable instanceof ISubscribeTask) { |
| | | ISubscribeTask subscribeTask = (ISubscribeTask) runnable; |
| | | subscribeTask.stop(); |
| | | subscribeTask.stop(null); |
| | | } |
| | | dynamicTask.stop(key); |
| | | } |
| | |
| | | deviceChannelService.updateChannel(deviceId, channel); |
| | | } |
| | | |
| | | @Operation(summary = "修改通道的码流类型", security = @SecurityRequirement(name = JwtUtils.HEADER)) |
| | | @Parameter(name = "deviceId", description = "设备国标编号", required = true) |
| | | @Parameter(name = "channel", description = "通道信息", required = true) |
| | | @PostMapping("/channel/stream/identification/update/") |
| | | public void updateChannelStreamIdentification(DeviceChannel channel){ |
| | | deviceChannelService.updateChannelStreamIdentification(channel); |
| | | } |
| | | |
| | | /** |
| | | * 修改数据流传输模式 |
| | | * @param deviceId 设备id |