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.
@@ -14043,6 +14043,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14043
14043
  //拖拽交换位置后,更改index,更改相应的video_data数组中对应的对象索引位置
14044
14044
  console.log(ev);
14045
14045
  ev.preventDefault();
14046
+ let videoData = me.VIDEO_DATA;
14046
14047
 
14047
14048
  if (src.prop("outerHTML") === $(this).prop("outerHTML")) {
14048
14049
  return;
@@ -14050,7 +14051,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14050
14051
 
14051
14052
  let target = $(this);
14052
14053
  let srcIndex = src.index();
14053
- let targetIndex = target.index();
14054
+ let targetIndex = target.index(); // if(target.hasClass('main-screen'))
14055
+
14054
14056
  target.removeClass('screen-' + (targetIndex + 1)).addClass('screen-' + (srcIndex + 1));
14055
14057
  src.removeClass('screen-' + (srcIndex + 1)).addClass('screen-' + (targetIndex + 1));
14056
14058
  target.attr('index', srcIndex);
@@ -14059,7 +14061,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14059
14061
  target.children('#frame-decoded-' + (targetIndex + 1)).attr('id', 'frame-decoded-' + (srcIndex + 1));
14060
14062
  src.children('#info-self' + (srcIndex + 1)).attr('id', 'info-self-' + (targetIndex + 1));
14061
14063
  target.children('#info-self-' + (targetIndex + 1)).attr('id', 'info-self-' + (srcIndex + 1));
14062
- let videoData = me.VIDEO_DATA;
14064
+
14065
+ if (target.hasClass('main-screen')) {
14066
+ target.removeClass('main-screen');
14067
+ src.addClass('main-screen');
14068
+ }
14069
+
14070
+ if (src.hasClass('main-screen')) {
14071
+ src.removeClass('main-screen');
14072
+ target.addClass('main-screen');
14073
+ }
14063
14074
 
14064
14075
  if (srcIndex > targetIndex) {
14065
14076
  src.insertBefore(target);
@@ -15384,7 +15395,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15384
15395
  if (!CONST_CODE.STATUS_CODE_ARR.includes(result.error_code + '')) {
15385
15396
  //videoListener.dispatch('afterclose', self);
15386
15397
  //播放失败 关闭视频
15387
- if (result.error_code + '' != '4001') self.close('err');
15398
+ self.close('err', result.error_code + '');
15388
15399
 
15389
15400
  if (self.isLockVideo) {
15390
15401
  setTimeout(function () {
@@ -15693,7 +15704,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15693
15704
 
15694
15705
  console.log("视频播放:分屏=" + (this.index + 1) + ",设备ID=" + video);
15695
15706
  },
15696
- close: function (type) {
15707
+ close: function (type, code) {
15697
15708
  if (!type) {
15698
15709
  this.isLockVideo = false;
15699
15710
  this.tagBox.parent().find('.lock-video-btn').attr("class", "unlock-video-btn");
@@ -15713,7 +15724,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15713
15724
  "message": _hangup
15714
15725
  });
15715
15726
  this.sipcall.hangup();
15716
- this.tagBox.hide();
15727
+ code != '4001' && this.tagBox.hide();
15717
15728
  this.isClosing = true;
15718
15729
  this.playing = false;
15719
15730
  this.video = null;
Binary file