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.
@@ -13444,11 +13444,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13444
13444
  }
13445
13445
 
13446
13446
  this.VIDEO_DATA[index].close();
13447
- let video = $(this.selector + ' li ')[index].find('video');
13447
+ let video = $(this.selector + ' li ').eq(index).find('video');
13448
13448
 
13449
13449
  if (video.hasClass('scale-scene')) {
13450
13450
  video.removeClass('scale-scene');
13451
13451
  video.parent().find('.scale-btn').addClass('bggray');
13452
+ video.parent().find('.scale-btn').attr('title', '视频画面铺满');
13452
13453
  }
13453
13454
 
13454
13455
  if (!isSave) {
@@ -13575,12 +13576,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13575
13576
 
13576
13577
 
13577
13578
  for (let k = 0; k < _li.length; k++) {
13578
- let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index'); // if(rotateIndex != 0 && rotateIndex != 2){
13579
+ let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
13579
13580
 
13581
+ let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray');
13580
13582
 
13581
- setTimeout(() => {
13582
- me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13583
- }, 200); // }
13583
+ if (scaleBtn) {
13584
+ setTimeout(() => {
13585
+ me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13586
+ }, 200);
13587
+ }
13584
13588
  }
13585
13589
  },
13586
13590
 
@@ -14037,8 +14041,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14037
14041
  src.removeClass('screen-' + (srcIndex + 1)).addClass('screen-' + (targetIndex + 1));
14038
14042
  target.attr('index', srcIndex);
14039
14043
  src.attr('index', targetIndex);
14040
- src.children('#frame-decoded-' + (srcIndex + 1)).attr('id', '#frame-decoded-' + (targetIndex + 1));
14041
- target.children('#frame-decoded-' + (targetIndex + 1)).attr('id', '#frame-decoded-' + (srcIndex + 1));
14044
+ src.children('#frame-decoded-' + (srcIndex + 1)).attr('id', 'frame-decoded-' + (targetIndex + 1));
14045
+ target.children('#frame-decoded-' + (targetIndex + 1)).attr('id', 'frame-decoded-' + (srcIndex + 1));
14042
14046
  let videoData = me.VIDEO_DATA;
14043
14047
 
14044
14048
  if (srcIndex > targetIndex) {
@@ -14292,7 +14296,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14292
14296
  });
14293
14297
  videoFlagObj.find('button[name=scaleVideo]').click(function () {
14294
14298
  let isgray = $(this).hasClass('bggray');
14295
- if (isgray) $(this).parent().parent().find('.video-box').addClass('scale-scene');else $(this).parent().parent().find('.video-box').removeClass('scale-scene');
14299
+
14300
+ if (isgray) {
14301
+ $(this).parent().parent().find('.video-box').addClass('scale-scene');
14302
+ $(this).attr('title', '原视频分辨率展示');
14303
+ } else {
14304
+ $(this).parent().parent().find('.video-box').removeClass('scale-scene');
14305
+ $(this).attr('title', '视频画面铺满');
14306
+ }
14307
+
14296
14308
  $(this).toggleClass("bggray"); //jquery方式阻止默认事件 & 冒泡事件
14297
14309
 
14298
14310
  return false;
Binary file