ucservice 2.2.5 → 2.2.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.
@@ -14034,6 +14034,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14034
14034
  //拖拽交换位置后,更改index,更改相应的video_data数组中对应的对象索引位置
14035
14035
  console.log(ev);
14036
14036
  ev.preventDefault();
14037
+ let videoData = me.VIDEO_DATA;
14037
14038
 
14038
14039
  if (src.prop("outerHTML") === $(this).prop("outerHTML")) {
14039
14040
  return;
@@ -14041,7 +14042,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14041
14042
 
14042
14043
  let target = $(this);
14043
14044
  let srcIndex = src.index();
14044
- let targetIndex = target.index();
14045
+ let targetIndex = target.index(); // if(target.hasClass('main-screen'))
14046
+
14045
14047
  target.removeClass('screen-' + (targetIndex + 1)).addClass('screen-' + (srcIndex + 1));
14046
14048
  src.removeClass('screen-' + (srcIndex + 1)).addClass('screen-' + (targetIndex + 1));
14047
14049
  target.attr('index', srcIndex);
@@ -14050,7 +14052,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14050
14052
  target.children('#frame-decoded-' + (targetIndex + 1)).attr('id', 'frame-decoded-' + (srcIndex + 1));
14051
14053
  src.children('#info-self' + (srcIndex + 1)).attr('id', 'info-self-' + (targetIndex + 1));
14052
14054
  target.children('#info-self-' + (targetIndex + 1)).attr('id', 'info-self-' + (srcIndex + 1));
14053
- let videoData = me.VIDEO_DATA;
14055
+
14056
+ if (target.hasClass('main-screen')) {
14057
+ target.removeClass('main-screen');
14058
+ src.addClass('main-screen');
14059
+ }
14060
+
14061
+ if (src.hasClass('main-screen')) {
14062
+ src.removeClass('main-screen');
14063
+ target.addClass('main-screen');
14064
+ }
14054
14065
 
14055
14066
  if (srcIndex > targetIndex) {
14056
14067
  src.insertBefore(target);
@@ -15375,7 +15386,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15375
15386
  if (!CONST_CODE.STATUS_CODE_ARR.includes(result.error_code + '')) {
15376
15387
  //videoListener.dispatch('afterclose', self);
15377
15388
  //播放失败 关闭视频
15378
- if (result.error_code + '' != '4001') self.close('err');
15389
+ self.close('err', result.error_code + '');
15379
15390
 
15380
15391
  if (self.isLockVideo) {
15381
15392
  setTimeout(function () {
@@ -15684,7 +15695,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15684
15695
 
15685
15696
  console.log("视频播放:分屏=" + (this.index + 1) + ",设备ID=" + video);
15686
15697
  },
15687
- close: function (type) {
15698
+ close: function (type, code) {
15688
15699
  if (!type) {
15689
15700
  this.isLockVideo = false;
15690
15701
  this.tagBox.parent().find('.lock-video-btn').attr("class", "unlock-video-btn");
@@ -15704,7 +15715,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15704
15715
  "message": _hangup
15705
15716
  });
15706
15717
  this.sipcall.hangup();
15707
- this.tagBox.hide();
15718
+ code != '4001' && this.tagBox.hide();
15708
15719
  this.isClosing = true;
15709
15720
  this.playing = false;
15710
15721
  this.video = null;
Binary file