追加 小程序 获取视频流接口

This commit is contained in:
furongxin 2024-06-17 15:09:55 +08:00
parent 44fc8ffc54
commit c5e6bd8db5

View File

@ -35,6 +35,15 @@ public class HikController {
return CommonResult.success(url);
}
@GetMapping("/m-getCameraUrl")
@Operation(summary = "视频播放->查询播放地址(微信用)")
public CommonResult<String> getMCameraUrl(String cameraCode) {
String url = hikService.getPreviewUrlsApi(cameraCode, 0);
String fullUrl = String.format("https://api.znkj.ispt.com.cn/demo/mobile_play.html?url=%s",url );
return CommonResult.success(fullUrl);
}
@GetMapping("/replayUrl")
@Operation(summary = "视频播放->回放流")
@PermitAll