ucservice 1.7.5 → 1.7.8

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.
@@ -13453,11 +13453,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13453
13453
  }
13454
13454
 
13455
13455
  this.VIDEO_DATA[index].close();
13456
- let video = $(this.selector + ' li ')[index].find('video');
13456
+ let video = $(this.selector + ' li ').eq(index).find('video');
13457
13457
 
13458
13458
  if (video.hasClass('scale-scene')) {
13459
13459
  video.removeClass('scale-scene');
13460
13460
  video.parent().find('.scale-btn').addClass('bggray');
13461
+ video.parent().find('.scale-btn').attr('title', '视频画面铺满');
13461
13462
  }
13462
13463
 
13463
13464
  if (!isSave) {
@@ -13584,12 +13585,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13584
13585
 
13585
13586
 
13586
13587
  for (let k = 0; k < _li.length; k++) {
13587
- let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index'); // if(rotateIndex != 0 && rotateIndex != 2){
13588
+ let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
13588
13589
 
13590
+ let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray');
13589
13591
 
13590
- setTimeout(() => {
13591
- me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13592
- }, 200); // }
13592
+ if (scaleBtn) {
13593
+ setTimeout(() => {
13594
+ me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13595
+ }, 200);
13596
+ }
13593
13597
  }
13594
13598
  },
13595
13599
 
@@ -14046,8 +14050,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14046
14050
  src.removeClass('screen-' + (srcIndex + 1)).addClass('screen-' + (targetIndex + 1));
14047
14051
  target.attr('index', srcIndex);
14048
14052
  src.attr('index', targetIndex);
14049
- src.children('#frame-decoded-' + (srcIndex + 1)).attr('id', '#frame-decoded-' + (targetIndex + 1));
14050
- target.children('#frame-decoded-' + (targetIndex + 1)).attr('id', '#frame-decoded-' + (srcIndex + 1));
14053
+ src.children('#frame-decoded-' + (srcIndex + 1)).attr('id', 'frame-decoded-' + (targetIndex + 1));
14054
+ target.children('#frame-decoded-' + (targetIndex + 1)).attr('id', 'frame-decoded-' + (srcIndex + 1));
14051
14055
  let videoData = me.VIDEO_DATA;
14052
14056
 
14053
14057
  if (srcIndex > targetIndex) {
@@ -14301,7 +14305,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14301
14305
  });
14302
14306
  videoFlagObj.find('button[name=scaleVideo]').click(function () {
14303
14307
  let isgray = $(this).hasClass('bggray');
14304
- if (isgray) $(this).parent().parent().find('.video-box').addClass('scale-scene');else $(this).parent().parent().find('.video-box').removeClass('scale-scene');
14308
+
14309
+ if (isgray) {
14310
+ $(this).parent().parent().find('.video-box').addClass('scale-scene');
14311
+ $(this).attr('title', '原视频分辨率展示');
14312
+ } else {
14313
+ $(this).parent().parent().find('.video-box').removeClass('scale-scene');
14314
+ $(this).attr('title', '视频画面铺满');
14315
+ }
14316
+
14305
14317
  $(this).toggleClass("bggray"); //jquery方式阻止默认事件 & 冒泡事件
14306
14318
 
14307
14319
  return false;
Binary file