From 8874c90db2c238fa4c55df491675fe7fec9d93b2 Mon Sep 17 00:00:00 2001 From: fine <54142345+criver31@users.noreply.github.com> Date: 星期二, 09 一月 2024 11:45:30 +0800 Subject: [PATCH] Merge branch '648540858:wvp-28181-2.0' into wvp-28181-2.0 --- web_src/src/components/CloudRecord.vue | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/web_src/src/components/CloudRecord.vue b/web_src/src/components/CloudRecord.vue index ca963e6..4a4a74b 100755 --- a/web_src/src/components/CloudRecord.vue +++ b/web_src/src/components/CloudRecord.vue @@ -213,10 +213,26 @@ console.log(row) this.chooseRecord = row; this.showPlayer = true; - let videoPath = row.filePath.substring(row.filePath.length - 25); - console.log(videoPath) - this.videoUrl = `${this.getFileBasePath(row)}/download/${row.app}/${row.stream}/${videoPath}` - console.log(this.videoUrl) + this.$axios({ + method: 'get', + url: `/api/cloud/record/play/path`, + params: { + recordId: row.id, + } + }).then((res) => { + console.log(res) + if (res.data.code === 0) { + if (location.protocol === "https:") { + this.videoUrl = res.data.data.httpsPath; + }else { + this.videoUrl = res.data.data.httpPath; + } + console.log(222 ) + console.log(this.videoUrl ) + } + }).catch((error) => { + console.log(error); + }); }, getFileBasePath(item) { let basePath = "" -- Gitblit v1.8.0