ucservice 2.4.5 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15457,7 +15457,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15457
15457
  });
15458
15458
  },
15459
15459
  error: function (error) {
15460
- debugger;
15460
+ if (error.name == 'NotAllowedError') {
15461
+ alert('请检查PC设备的摄像头和麦克风并允许浏览器使用它们,以便进行视频通话。');
15462
+ }
15463
+
15461
15464
  console.error('incomingcall', error); // let body = { "request": "decline", "code": 480 };
15462
15465
  // self.sipcall.send({"message": body});
15463
15466
  }
@@ -23108,7 +23111,6 @@ function Janus(gatewayCallbacks) {
23108
23111
  }
23109
23112
 
23110
23113
  config.mySdp = answer.sdp;
23111
- debugger;
23112
23114
  config.pc.setLocalDescription(answer).catch(callbacks.error);
23113
23115
  config.mediaConstraints = mediaConstraints;
23114
23116
 
@@ -31596,12 +31598,12 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31596
31598
  if (backSuccfn) backSuccfn(null);
31597
31599
  throw new Error('请求失败!');
31598
31600
  }).done(function (ret) {
31601
+ if (backSuccfn) backSuccfn(ret);
31602
+
31599
31603
  if (!ret || ret.code != 0) {
31600
31604
  console.error('加载数据失败:' + JSON.stringify(ret) + ", " + url);
31601
31605
  throw new Error('加载数据失败!');
31602
31606
  }
31603
-
31604
- if (backSuccfn) backSuccfn(ret);
31605
31607
  });
31606
31608
  };
31607
31609
  /**
Binary file