Browse Source

fix:修复前端获取麦克风参数异常

kindring 2 years ago
parent
commit
1484e4279e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web_src/src/components/common/microphone.vue

+ 2 - 2
web_src/src/components/common/microphone.vue

@@ -94,10 +94,10 @@ export default {
     async startRecordAudio() {
       let err, stream, res;
       if (!this.mediaStream) {
-        let httpHook = this.hookProtocol;
+        let httpsHook = this.httpsHook;
         let pushKey = this.pushKey;
         pushKey = CryptoJS.MD5(pushKey);
-        let serverHost = `${hookProtocol}://${hookHost}`
+        let serverHost = `${httpsHook}`
         let app = "rtc";
         let stream = `audio${this.deviceId}`
         // webrtc 请求推流 url