From 06d78575cc08170d09e089f40cd271acbbb4661f Mon Sep 17 00:00:00 2001 From: 64850858 <648540858@qq.com> Date: Wed, 14 Jul 2021 16:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A3=B0=E9=9F=B3=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/dialog/devicePlayer.vue | 8 +++++--- web_src/src/components/dialog/jessibuca.vue | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/web_src/src/components/dialog/devicePlayer.vue b/web_src/src/components/dialog/devicePlayer.vue index 9653833f..b7187b77 100644 --- a/web_src/src/components/dialog/devicePlayer.vue +++ b/web_src/src/components/dialog/devicePlayer.vue @@ -3,7 +3,7 @@ - +
@@ -185,7 +185,7 @@ export default { deviceId: '', channelId: '', tabActiveName: 'media', - hasaudio: false, + hasAudio: false, loadingRecords: false, recordsLoading: false, isLoging: false, @@ -235,6 +235,8 @@ export default { } }, openDialog: function (tab, deviceId, channelId, param) { + console.log("openDialog") + console.log(param) this.tabActiveName = tab; this.channelId = channelId; this.deviceId = deviceId; @@ -268,7 +270,7 @@ export default { }, play: function (streamInfo, hasAudio) { - this.hasaudio = hasAudio; + this.hasAudio = hasAudio; this.isLoging = false; // this.videoUrl = streamInfo.rtc; this.videoUrl = this.getUrlByStreamInfo(streamInfo); diff --git a/web_src/src/components/dialog/jessibuca.vue b/web_src/src/components/dialog/jessibuca.vue index ff91cd10..d9676b47 100644 --- a/web_src/src/components/dialog/jessibuca.vue +++ b/web_src/src/components/dialog/jessibuca.vue @@ -46,7 +46,7 @@ export default { forceNoOffscreen: false, }; }, - props: ['videoUrl', 'error', 'hasaudio', 'height'], + props: ['videoUrl', 'error', 'hasAudio', 'height'], mounted () { window.onerror = (msg) => { // console.error(msg) @@ -73,6 +73,7 @@ export default { create(){ let options = {}; console.log(this.$refs.container) + console.log("hasAudio " + this.hasAudio) this.jessibuca = new window.Jessibuca(Object.assign( { @@ -83,7 +84,7 @@ export default { // text: "WVP-PRO", // background: "bg.jpg", loadingText: "加载中", - hasAudio: this.hasAudio, + hasAudio: typeof (this.hasAudio) =="undefined"? true: this.hasAudio, debug: false, supportDblclickFullscreen: false, // 是否支持屏幕的双击事件,触发全屏,取消全屏事件。 operateBtns: {