From 9ebf442fe380c9899c88b51fd4fa353c1a2af3e1 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Wed, 18 Dec 2024 14:33:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B7=E8=BE=BE=E5=BD=95=E5=83=8F=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E5=89=8D=E4=B8=A4=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/JiHeExpressway/components/Video/Video.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Video/Video.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Video/Video.vue index 40db6693..756a9150 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Video/Video.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Video/Video.vue @@ -54,9 +54,16 @@ export default { methods: { playVideo() { this.player?.destroy(); + debugger if (this.videoType == 'flv') { // const player = await openLiveVideo(this.$refs.videoContainerRef, { camId: this.camId, url: this.url, pileNum: this.pileNum }) this.player = new HttpLivePlayer(this.$refs.videoContainerRef, { camId: this.camId, url: this.url, pileNum: this.pileNum, rangeIndex: this.rangeIndex }); + } else if (this.videoType == 'mp4'){ + //雷达录像跳过前两秒 + if (this.url.indexOf('/radar/')!== -1){ + this.$refs.videoContainerRef.currentTime = 2; + video.pause(); // 暂停播放 + } } } }