diff --git a/web_src/src/components/common/jessibuca.vue b/web_src/src/components/common/jessibuca.vue index c23cd71ec..c3a978916 100755 --- a/web_src/src/components/common/jessibuca.vue +++ b/web_src/src/components/common/jessibuca.vue @@ -44,7 +44,7 @@ export default { vod: true, // 点播 }; }, - props: ['videoUrl', 'error', 'hasAudio', 'height', 'autoPlay'], + props: ['videoUrl', 'error', 'hasAudio', 'height'], mounted() { let paramUrl = decodeURIComponent(this.$route.params.url) this.$nextTick(() => { @@ -56,9 +56,6 @@ export default { this.videoUrl = paramUrl; } this.btnDom = document.getElementById("buttonsBox"); - if (this.autoPlay) { - this.play(this.videoUrl); - } }) }, watch: { @@ -67,7 +64,8 @@ export default { this.$nextTick(() => { this.play(val); }) - } + }, + immediate: true } }, methods: { diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue index 74384d8e8..4ea8b9869 100755 --- a/web_src/src/components/dialog/devicePlayer.vue +++ b/web_src/src/components/dialog/devicePlayer.vue @@ -453,15 +453,6 @@ export default { playFromStreamInfo: function (realHasAudio, streamInfo) { this.showVideoDialog = true; this.hasaudio = realHasAudio && this.hasaudio; - if (this.$refs[this.activePlayer]) { - this.$refs[this.activePlayer].play(this.getUrlByStreamInfo(streamInfo)) - }else { - this.$nextTick(() => { - this.$refs[this.activePlayer].play(this.getUrlByStreamInfo(streamInfo)) - }); - } - - }, close: function () { console.log('关闭视频'); diff --git a/web_src/src/components/live.vue b/web_src/src/components/live.vue index d2ac1956e..4a7af491e 100755 --- a/web_src/src/components/live.vue +++ b/web_src/src/components/live.vue @@ -18,7 +18,7 @@ @click="playerIdx = (i-1)">