ucservice 2.5.0 → 2.5.1

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.
@@ -14178,6 +14178,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14178
14178
  let vHeight = video.offsetHeight;
14179
14179
  let liWidth = li.offsetWidth;
14180
14180
  let liHeight = li.offsetHeight;
14181
+ let isScale = video.classList.contains('scale-scene');
14181
14182
 
14182
14183
  if (rotateIndex == 0) {
14183
14184
  //0
@@ -14191,6 +14192,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14191
14192
  $(video).css('top', '50%');
14192
14193
  if (videoWidth / videoHeight < liWidth / liHeight) $(video).css('height', '100%');else $(video).css('width', '100%');
14193
14194
  video.style.transform = 'translate(-50%, -50%)';
14195
+
14196
+ if (isScale) {
14197
+ $(video).css('height', '100%');
14198
+ $(video).css('width', '100%');
14199
+ }
14194
14200
  } else if (rotateIndex == 3) {
14195
14201
  //3
14196
14202
  // $(video).attr('class', 'video-box');
@@ -14212,6 +14218,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14212
14218
  $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14213
14219
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14214
14220
  }
14221
+
14222
+ if (isScale) {
14223
+ $(video).css('height', liWidth);
14224
+ $(video).css('width', liHeight);
14225
+ }
14215
14226
  } else if (rotateIndex == 2) {
14216
14227
  //2
14217
14228
  // $(video).attr('class', 'video-box');
@@ -14224,6 +14235,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14224
14235
  $(video).css('top', '50%');
14225
14236
  if (videoWidth / videoHeight < liWidth / liHeight) $(video).css('height', '100%');else $(video).css('width', '100%');
14226
14237
  video.style.transform = 'translate(-50%, -50%) rotate(180deg)';
14238
+
14239
+ if (isScale) {
14240
+ $(video).css('height', '100%');
14241
+ $(video).css('width', '100%');
14242
+ }
14227
14243
  } else if (rotateIndex == 1) {
14228
14244
  //1
14229
14245
  // $(video).attr('class', 'video-box');
@@ -14245,6 +14261,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14245
14261
  $(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
14246
14262
  $(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14247
14263
  }
14264
+
14265
+ if (isScale) {
14266
+ $(video).css('height', liWidth);
14267
+ $(video).css('width', liHeight);
14268
+ }
14248
14269
  }
14249
14270
  },
14250
14271
 
@@ -14323,6 +14344,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14323
14344
  $(this).attr('title', '视频画面铺满');
14324
14345
  }
14325
14346
 
14347
+ this.videoRotateSize($(this).parent().parent(), $(this).parent().find('button[name=rotateVideo]').attr('rotate-index'));
14326
14348
  $(this).toggleClass("bggray"); //jquery方式阻止默认事件 & 冒泡事件
14327
14349
 
14328
14350
  return false;
@@ -14336,9 +14358,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14336
14358
  } else {
14337
14359
  $(this).attr('class', 'fullscreen-btn');
14338
14360
  $(this).attr('title', '全屏');
14339
- } //jquery方式阻止默认事件 & 冒泡事件
14340
- // return false;
14361
+ }
14341
14362
 
14363
+ this.videoRotateSize($(this).parent().parent(), $(this).parent().find('button[name=rotateVideo]').attr('rotate-index')); //jquery方式阻止默认事件 & 冒泡事件
14364
+ // return false;
14342
14365
  }); //接收音频事件
14343
14366
 
14344
14367
  videoFlagObj.find("button[name='recvAudio']").click(function () {
Binary file