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.
@@ -15448,7 +15448,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15448
15448
  });
15449
15449
  },
15450
15450
  error: function (error) {
15451
- debugger;
15451
+ if (error.name == 'NotAllowedError') {
15452
+ alert('请检查PC设备的摄像头和麦克风并允许浏览器使用它们,以便进行视频通话。');
15453
+ }
15454
+
15452
15455
  console.error('incomingcall', error); // let body = { "request": "decline", "code": 480 };
15453
15456
  // self.sipcall.send({"message": body});
15454
15457
  }
@@ -23099,7 +23102,6 @@ function Janus(gatewayCallbacks) {
23099
23102
  }
23100
23103
 
23101
23104
  config.mySdp = answer.sdp;
23102
- debugger;
23103
23105
  config.pc.setLocalDescription(answer).catch(callbacks.error);
23104
23106
  config.mediaConstraints = mediaConstraints;
23105
23107
 
@@ -31587,12 +31589,12 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31587
31589
  if (backSuccfn) backSuccfn(null);
31588
31590
  throw new Error('请求失败!');
31589
31591
  }).done(function (ret) {
31592
+ if (backSuccfn) backSuccfn(ret);
31593
+
31590
31594
  if (!ret || ret.code != 0) {
31591
31595
  console.error('加载数据失败:' + JSON.stringify(ret) + ", " + url);
31592
31596
  throw new Error('加载数据失败!');
31593
31597
  }
31594
-
31595
- if (backSuccfn) backSuccfn(ret);
31596
31598
  });
31597
31599
  };
31598
31600
  /**
Binary file