| | |
| | | import com.genersoft.iot.vmp.service.ICloudRecordService; |
| | | import com.genersoft.iot.vmp.service.IMediaServerService; |
| | | import com.genersoft.iot.vmp.service.bean.CloudRecordItem; |
| | | import com.genersoft.iot.vmp.service.bean.DownloadFileInfo; |
| | | import com.genersoft.iot.vmp.vmanager.bean.ErrorCode; |
| | | import com.github.pagehelper.PageInfo; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | @Parameter(name = "mediaServerId", description = "流媒体ID", required = false) |
| | | @Parameter(name = "isEnd", description = "是否结束", required = false) |
| | | public JSONArray queryTaskList( |
| | | @RequestParam(required = false) String app, |
| | | @RequestParam(required = false) String stream, |
| | | @RequestParam(required = false) String callId, |
| | | @RequestParam(required = false) String taskId, |
| | | @RequestParam(required = false) String mediaServerId, |
| | | @RequestParam(required = false) Boolean isEnd |
| | | ){ |
| | | return cloudRecordService.queryTask(taskId, mediaServerId, isEnd); |
| | | return cloudRecordService.queryTask(app, stream, callId, taskId, mediaServerId, isEnd); |
| | | } |
| | | |
| | | @ResponseBody |
| | |
| | | return cloudRecordService.changeCollect(false, app, stream, mediaServerId, startTime, endTime, callId); |
| | | } |
| | | } |
| | | |
| | | @ResponseBody |
| | | @GetMapping("/play/path") |
| | | @Operation(summary = "获取播放地址") |
| | | @Parameter(name = "recordId", description = "录像记录的ID", required = true) |
| | | public DownloadFileInfo getPlayUrlPath( |
| | | @RequestParam(required = true) Integer recordId |
| | | ){ |
| | | return cloudRecordService.getPlayUrlPath(recordId); |
| | | } |
| | | } |