| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.query.DevicePageListQuery; |
| | | import com.ruoyi.web.controller.tool.monitor.DeviceLiveQuery; |
| | | import com.ruoyi.web.controller.tool.monitor.DevicePlayerQuery; |
| | | import com.ruoyi.web.controller.tool.monitor.DeviceQuery; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | private DeviceQuery deviceQuery; |
| | | @Autowired |
| | | private DeviceLiveQuery deviceLiveQuery; |
| | | @Autowired |
| | | private DevicePlayerQuery devicePlayerQuery; |
| | | |
| | | @ApiOperation(value = "获取监控设备分页列表") |
| | | @PostMapping("/devicePageList") |
| | |
| | | return R.ok(deviceLiveUrl); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取视频播放操作链接") |
| | | @GetMapping("/getPlayerUrlByDeviceId") |
| | | public R<JSONObject> getPlayerUrlByDeviceId(@RequestParam String deviceId) { |
| | | JSONObject deviceLiveUrl = devicePlayerQuery.getDevicePlayerList(deviceId); |
| | | return R.ok(deviceLiveUrl); |
| | | } |
| | | |
| | | } |