From 06d78575cc08170d09e089f40cd271acbbb4661f Mon Sep 17 00:00:00 2001
From: 64850858 <648540858@qq.com>
Date: 星期三, 14 七月 2021 16:59:55 +0800
Subject: [PATCH] 修改声音处理逻辑

---
 web_src/src/components/dialog/jessibuca.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/web_src/src/components/dialog/jessibuca.vue b/web_src/src/components/dialog/jessibuca.vue
index ff91cd1..d9676b4 100644
--- a/web_src/src/components/dialog/jessibuca.vue
+++ b/web_src/src/components/dialog/jessibuca.vue
@@ -46,7 +46,7 @@
           forceNoOffscreen: false,
         };
     },
-    props: ['videoUrl', 'error', 'hasaudio', 'height'],
+    props: ['videoUrl', 'error', 'hasAudio', 'height'],
     mounted () {
       window.onerror = (msg) => {
         // console.error(msg)
@@ -73,6 +73,7 @@
         create(){
           let options =  {};
           console.log(this.$refs.container)
+          console.log("hasAudio  " + this.hasAudio)
 
           this.jessibuca = new window.Jessibuca(Object.assign(
             {
@@ -83,7 +84,7 @@
               // text: "WVP-PRO",
               // background: "bg.jpg",
               loadingText: "鍔犺浇涓�",
-              hasAudio: this.hasAudio,
+              hasAudio: typeof (this.hasAudio) =="undefined"? true: this.hasAudio,
               debug: false,
               supportDblclickFullscreen: false, // 鏄惁鏀寔灞忓箷鐨勫弻鍑讳簨浠讹紝瑙﹀彂鍏ㄥ睆锛屽彇娑堝叏灞忎簨浠躲��
               operateBtns: {

--
Gitblit v1.8.0