From 5b1fb0ef7416092cda516c0bf4113dc94287e7cb Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Tue, 18 Nov 2025 16:53:26 +0800
Subject: [PATCH] 1.增加上传航线到边缘服务器接口。 2.增加开始航线接口。 3.增加暂停航线接口。 4.增加恢复航线接口。 5.增加结束航线接口。 6.注释修改。
---
ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java b/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java
index 03a960e..b3d901a 100644
--- a/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java
+++ b/ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java
@@ -4,8 +4,10 @@
import com.ard.common.utils.SecurityUtils;
import com.ard.sample.common.model.ResponseResult;
import com.ard.sample.component.mqtt.model.ChannelName;
+import com.ard.sample.component.websocket.handler.LiveStreamHandler;
import com.ard.sample.manage.model.dto.CapacityDeviceDTO;
import com.ard.sample.manage.model.dto.LiveTypeDTO;
+import com.ard.sample.manage.model.param.RemoteDebugParam;
import com.ard.sample.manage.model.receiver.LiveCapacityReceiver;
import com.ard.sample.manage.service.ILiveStreamService;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -37,6 +39,9 @@
private ILiveStreamService liveStreamService;
@Autowired
+ private LiveStreamHandler _liveStreamHandler;
+
+ @Autowired
private ObjectMapper mapper;
/**
@@ -66,6 +71,21 @@
return ResponseResult.success(liveCapacity);
}
+ @ApiOperation("获取video_id")
+ @PostMapping("/videoid/{sn}")
+ public ResponseResult<LiveTypeDTO> getVideoId(@PathVariable String sn) {
+ LiveTypeDTO liveTypeDTO = new LiveTypeDTO();
+ try{
+ liveTypeDTO = _liveStreamHandler.getLiveParam(sn);
+
+ }
+ catch (Exception e){
+ // videoId = e.getMessage();
+ e.printStackTrace();
+ }
+ return ResponseResult.success(liveTypeDTO);
+ }
+
/**
* Live streaming according to the parameters passed in from the web side.
*
--
Gitblit v1.9.3