ucservice 1.3.8 → 1.4.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.
@@ -13473,7 +13473,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13473
13473
  for (let k = 0; k < _li.length; k++) {
13474
13474
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
13475
13475
 
13476
- if (rotateIndex != 0 && rotateIndex != 2) videoRotateSize(_li.eq(k), rotateIndex);
13476
+ if (rotateIndex != 0 && rotateIndex != 2) me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13477
13477
  }
13478
13478
  },
13479
13479
 
@@ -14002,16 +14002,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14002
14002
 
14003
14003
  if (videoWidth / videoHeight > liWidth / liHeight) {
14004
14004
  //视频横向留白
14005
- $(video).css('width', liHeight);
14006
- $(video).css('height', 'auto');
14007
- $(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
14008
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
14005
+ $(video).css('width', 'auto');
14006
+ $(video).css('height', liWidth);
14007
+ $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14008
+ $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14009
14009
  } else {
14010
14010
  //视频纵向留白
14011
- $(video).css('height', liWidth);
14012
- $(video).css('width', 'auto');
14013
- $(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
14014
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
14011
+ $(video).css('width', liHeight);
14012
+ $(video).css('height', 'auto');
14013
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14014
+ $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14015
14015
  }
14016
14016
  }
14017
14017
  },
@@ -14099,7 +14099,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14099
14099
  rotateIndex++;
14100
14100
  $(this).attr("rotate-index", rotateIndex % 4);
14101
14101
  let li = $(this).parent().parent()[0];
14102
- videoRotateSize(li, rotateIndex);
14102
+ me.videoRotateSize(li, rotateIndex);
14103
14103
  }); //接收音频事件
14104
14104
 
14105
14105
  videoFlagObj.find("button[name='recvAudio']").click(function () {
@@ -14334,7 +14334,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14334
14334
  let index = me._opts.windowsBeginIndex + 1;
14335
14335
 
14336
14336
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14337
- videoHtml += '<li class="screen-' + i + '" index="' + (i - 1) + '"><video class="video-box" id="video-' + i + '" autoplay ></video>' + '<div class="info hide" id="info-' + i + '"></div>' + '<div class="operate-btn">'; //videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
14337
+ videoHtml += '<li class="screen-' + i + '" index="' + (i - 1) + '" draggable="true"><video class="video-box" id="video-' + i + '" autoplay ></video>' + '<div class="info hide" id="info-' + i + '"></div>' + '<div class="operate-btn">'; //videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
14338
14338
 
14339
14339
  checkUserMediaAvailable() && (videoHtml += '<button type="button" class="rotate-btn hide" name="rotateVideo" rotate-index="0"></button><button type="button" class="unsend-audio-btn hide" name="sendAudio"></button>');
14340
14340
  videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
Binary file