From 509171ab4b3b4f2115512bdfb09a583024fb5c53 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期二, 14 九月 2021 18:39:20 +0800 Subject: [PATCH] all --- src/components/player/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/player/index.vue b/src/components/player/index.vue index d403358..ede8d0b 100644 --- a/src/components/player/index.vue +++ b/src/components/player/index.vue @@ -45,17 +45,22 @@ showArea: { type: Boolean, default: false + }, + hasPoster:{ + type: Boolean, + default: true } }, computed: { - poster() { - return "/images/player/player_poster.gif?t=" + Math.random() - } + // poster() { + // return "/images/player/player_poster.gif?t=" + Math.random() + // } }, data() { return { wfs: {}, + poster: "/images/player/player_poster.gif?t=" + Math.random(), wfsId: 0, Camera: new VideoRuleData(), showCanvas: true, @@ -80,7 +85,7 @@ }, watch: { rtspUrl: function (newVal, oldVal) { - console.log("new rstp:::", newVal); + console.log("new rstp: ", newVal); if (newVal !== oldVal) { if (this.wfs.config) { this.wfs.destroy(); @@ -88,6 +93,7 @@ } this.$nextTick(() => { this.clickStart(); + this.poster = "/images/player/player_poster.gif?t=" + Math.random() }); } } -- Gitblit v1.8.0