| | |
| | | import com.ruoyi.media.domain.Conf; |
| | | import com.ruoyi.media.domain.Config; |
| | | import com.ruoyi.media.domain.Items; |
| | | import com.ruoyi.media.domain.Paths; |
| | | |
| | | import java.nio.file.Path; |
| | | |
| | | /** |
| | | * @Description: mediamtx流媒体客户端 |
| | |
| | | /** |
| | | * 增加路径 |
| | | */ |
| | | @Post(url = "/config/paths/add/{name}",async = true) |
| | | @Post("/config/paths/add/{name}") |
| | | public String addPath(@Var("name") String name, @JSONBody Conf body); |
| | | |
| | | /** |
| | | * 修改路径 |
| | | */ |
| | | @Patch(url = "/config/paths/patch/{name}") |
| | | @Patch("/config/paths/patch/{name}") |
| | | public String editPath(@Var("name") String name, @JSONBody Conf body); |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 获取路径详情 |
| | | */ |
| | | @Get("/config/paths/get/{name}") |
| | | @Get(url ="/config/paths/get/{name}") |
| | | public Conf getPathInfo(@Var("name") String name); |
| | | |
| | | /** |
| | | * 查询所有路径 |
| | | */ |
| | | @Get("/paths/list") |
| | | public String paths(); |
| | | public Paths paths(); |
| | | |
| | | /** |
| | | * 查询所有rtsp会话 |