| | |
| | | package com.ruoyi.utils.forest; |
| | | |
| | | import com.dtflys.forest.annotation.*; |
| | | import com.dtflys.forest.callback.OnError; |
| | | import com.ruoyi.media.domain.Conf; |
| | | import com.ruoyi.media.domain.Config; |
| | | import com.ruoyi.media.domain.Items; |
| | |
| | | * @Date: 2023年07月06日9:51 |
| | | * @Version: 1.0 |
| | | **/ |
| | | @BaseRequest(baseURL = "http://#{mediamtx.host}:9997/v2") |
| | | @BaseRequest(baseURL = "http://#{mediamtx.host}:9997/v3") |
| | | public interface MediaClient { |
| | | /** |
| | | * 增加路径 |
| | | */ |
| | | @Post(url = "/config/paths/add/{name}") |
| | | @Post("/config/paths/add/{name}") |
| | | public String addPath(@Var("name") String name, @JSONBody Conf body); |
| | | |
| | | /** |
| | | * 修改路径 |
| | | */ |
| | | @Post(url = "/config/paths/edit/{name}", async = true) |
| | | @Patch("/config/paths/patch/{name}") |
| | | public String editPath(@Var("name") String name, @JSONBody Conf body); |
| | | |
| | | /** |
| | | * 移除路径 |
| | | */ |
| | | @Post("/config/paths/remove/{name}") |
| | | @Delete("/config/paths/delete/{name}") |
| | | public String removePath(@Var("name") String name); |
| | | |
| | | /** |
| | | * 获取路径详情 |
| | | */ |
| | | @Get("/paths/get/{name}") |
| | | public Items getPathInfo(@Var("name") String name); |
| | | @Get(url ="/config/paths/get/{name}") |
| | | public Conf getPathInfo(@Var("name") String name); |
| | | |
| | | /** |
| | | * 查询所有路径 |
| | |
| | | */ |
| | | @Get("/rtspsessions/list") |
| | | public String rtspsessions(); |
| | | |
| | | /** |
| | | * 查询所有rtsp连接 |
| | | */ |
| | | @Get("/rtspconns/list") |
| | | public String rtspconns(); |
| | | |
| | | /** |
| | | * 按sessionId查询rtsp会话 |