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.
@@ -13464,7 +13464,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13464
13464
  for (let k = 0; k < _li.length; k++) {
13465
13465
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
13466
13466
 
13467
- if (rotateIndex != 0 && rotateIndex != 2) videoRotateSize(_li.eq(k), rotateIndex);
13467
+ if (rotateIndex != 0 && rotateIndex != 2) me.videoRotateSize(_li.eq(k)[0], rotateIndex);
13468
13468
  }
13469
13469
  },
13470
13470
 
@@ -13993,16 +13993,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13993
13993
 
13994
13994
  if (videoWidth / videoHeight > liWidth / liHeight) {
13995
13995
  //视频横向留白
13996
- $(video).css('width', liHeight);
13997
- $(video).css('height', 'auto');
13998
- $(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
13999
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
13996
+ $(video).css('width', 'auto');
13997
+ $(video).css('height', liWidth);
13998
+ $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13999
+ $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14000
14000
  } else {
14001
14001
  //视频纵向留白
14002
- $(video).css('height', liWidth);
14003
- $(video).css('width', 'auto');
14004
- $(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
14005
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
14002
+ $(video).css('width', liHeight);
14003
+ $(video).css('height', 'auto');
14004
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14005
+ $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14006
14006
  }
14007
14007
  }
14008
14008
  },
@@ -14090,7 +14090,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14090
14090
  rotateIndex++;
14091
14091
  $(this).attr("rotate-index", rotateIndex % 4);
14092
14092
  let li = $(this).parent().parent()[0];
14093
- videoRotateSize(li, rotateIndex);
14093
+ me.videoRotateSize(li, rotateIndex);
14094
14094
  }); //接收音频事件
14095
14095
 
14096
14096
  videoFlagObj.find("button[name='recvAudio']").click(function () {
@@ -14325,7 +14325,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14325
14325
  let index = me._opts.windowsBeginIndex + 1;
14326
14326
 
14327
14327
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14328
- 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>';
14328
+ 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>';
14329
14329
 
14330
14330
  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>');
14331
14331
  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