ucservice 1.6.4 → 1.6.5

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.
@@ -12248,6 +12248,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
12248
12248
  * 在鼠标选中的窗口中播放视频
12249
12249
  */
12250
12250
  playInChoice: function (video, id, opts) {
12251
+ console.log("==调用playInChoice播放===");
12252
+
12251
12253
  let index = this._obj.SCWebGetCurrentWindowIndex();
12252
12254
 
12253
12255
  this.videoStatus[index] && this.close(index);
@@ -14014,6 +14016,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14014
14016
  ev.preventDefault();
14015
14017
  });
14016
14018
  $(me.selector + ' li').bind("drop", function (ev) {
14019
+ //拖拽交换位置后,更改index,更改相应的video_data数组中对应的对象索引位置
14017
14020
  console.log(ev);
14018
14021
  ev.preventDefault();
14019
14022
 
@@ -14024,6 +14027,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14024
14027
  let target = $(this);
14025
14028
  let srcIndex = src.index();
14026
14029
  let targetIndex = target.index();
14030
+ target.removeClass('screen-' + targetIndex).addClass('screen-' + srcIndex);
14031
+ src.removeClass('screen-' + srcIndex).addClass('screen-' + targetIndex);
14032
+ target.attr('index', srcIndex);
14033
+ src.attr('index', targetIndex);
14034
+ let videoData = me.VIDEO_DATA;
14027
14035
 
14028
14036
  if (srcIndex > targetIndex) {
14029
14037
  src.insertBefore(target);
@@ -14033,7 +14041,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14033
14041
  target.insertBefore($(me.selector + ' .video-main li.screen').eq(srcIndex));
14034
14042
  }
14035
14043
 
14036
- let videoData = me.VIDEO_DATA;
14044
+ let targetVideo = videoData[targetIndex];
14045
+ let srcVideo = videoData.splice(srcIndex, 1, targetIndex);
14046
+ videoData.splice(targetIndex, 1, ...srcVideo);
14037
14047
  });
14038
14048
  },
14039
14049
 
@@ -15521,8 +15531,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15521
15531
 
15522
15532
  self.tagBox.bind("canplay play playing", function () {
15523
15533
  if (self.video) {
15524
- // if (self.tagBox.is(':visible')) return;
15525
- // 清除播放监测定时任务,清除内容
15534
+ if (self.tagBox.is(':visible')) return; // 清除播放监测定时任务,清除内容
15535
+
15526
15536
  self.playSucTimeOutIndex > 0 && clearTimeout(self.playSucTimeOutIndex);
15527
15537
  self.tagBox.parent().find(".video-tip").remove();
15528
15538
  console.log('分屏=' + (self.index + 1) + ', ' + self.video + ' 播放成功');
Binary file