ucservice 2.2.5 → 2.2.6

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.
@@ -15375,7 +15375,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15375
15375
  if (!CONST_CODE.STATUS_CODE_ARR.includes(result.error_code + '')) {
15376
15376
  //videoListener.dispatch('afterclose', self);
15377
15377
  //播放失败 关闭视频
15378
- if (result.error_code + '' != '4001') self.close('err');
15378
+ self.close('err', result.error_code + '');
15379
15379
 
15380
15380
  if (self.isLockVideo) {
15381
15381
  setTimeout(function () {
@@ -15684,7 +15684,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15684
15684
 
15685
15685
  console.log("视频播放:分屏=" + (this.index + 1) + ",设备ID=" + video);
15686
15686
  },
15687
- close: function (type) {
15687
+ close: function (type, code) {
15688
15688
  if (!type) {
15689
15689
  this.isLockVideo = false;
15690
15690
  this.tagBox.parent().find('.lock-video-btn').attr("class", "unlock-video-btn");
@@ -15704,7 +15704,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15704
15704
  "message": _hangup
15705
15705
  });
15706
15706
  this.sipcall.hangup();
15707
- this.tagBox.hide();
15707
+ code != '4001' && this.tagBox.hide();
15708
15708
  this.isClosing = true;
15709
15709
  this.playing = false;
15710
15710
  this.video = null;
Binary file