2025-12-10 zwy 增加获取飞行器摄像头模式接口,从直播能力中获得,前提是飞行器要开机。
2 files modified
11 ■■■■■ changed files
ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java 6 ●●●●● patch | view | raw | blame | history
ard-sample/src/main/java/com/ard/sample/manage/service/ILiveStreamService.java 5 ●●●●● patch | view | raw | blame | history
ard-admin/src/main/java/com/ard/web/controller/sample/LiveStreamController.java
@@ -82,6 +82,12 @@
        return ResponseResult.success(liveCapacity);
    }
    @ApiOperation(value = "获取sn设备的摄像头模式", notes = "获取sn设备的直播能力数据中摄像头的videotype数组")
    @GetMapping("/videotype")
    public ResponseResult<List<String>> getVideoType(String sn){
        return liveStreamService.getLiveLens(sn);
    }
    @ApiOperation("获取video_id")
    @PostMapping("/videoid/{sn}")
    public ResponseResult<LiveTypeDTO> getVideoId(@PathVariable String sn) {
ard-sample/src/main/java/com/ard/sample/manage/service/ILiveStreamService.java
@@ -56,6 +56,11 @@
    ResponseResult liveLensChange(LiveTypeDTO liveParam);
    /**
     * 获取直播能力中摄像头模式(广角、变焦、红外)
     * */
    ResponseResult<List<String>> getLiveLens(String sn);
    /**
     * 直播相机切换
     * @param liveParam
     * @return