ucservice 1.4.3 → 1.4.4

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.
@@ -13951,17 +13951,21 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13951
13951
  if (rotateIndex == 0) {
13952
13952
  //0
13953
13953
  $(video).attr('class', 'video-box');
13954
- $(video).css('height', '');
13954
+ $(video).css('height', 'auto');
13955
13955
  $(video).css('width', 'auto');
13956
- video.style.position = 'static';
13957
- video.style.transform = 'none';
13958
- $(video).css('left', '');
13959
- $(video).css('top', '');
13956
+ $(video).css('max-height', '100%');
13957
+ $(video).css('max-width', '100%');
13958
+ video.style.position = 'absolute';
13959
+ $(video).css('left', '50%');
13960
+ $(video).css('top', '50%');
13961
+ video.style.transform = 'translate(-50%, -50%)';
13960
13962
  } else if (rotateIndex == 3) {
13961
13963
  //3
13962
13964
  $(video).attr('class', 'video-box');
13963
13965
  video.style.position = 'absolute';
13964
13966
  video.style.transform = 'rotate(270deg)';
13967
+ $(video).css('max-height', '');
13968
+ $(video).css('max-width', '');
13965
13969
 
13966
13970
  if (videoWidth / videoHeight > liWidth / liHeight) {
13967
13971
  //视频横向留白
@@ -13979,17 +13983,21 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13979
13983
  } else if (rotateIndex == 2) {
13980
13984
  //2
13981
13985
  $(video).attr('class', 'video-box');
13982
- $(video).css('height', '');
13986
+ $(video).css('height', 'auto');
13983
13987
  $(video).css('width', 'auto');
13984
- video.style.position = 'static';
13985
- video.style.transform = 'rotate(180deg)';
13986
- $(video).css('left', '');
13987
- $(video).css('top', '');
13988
+ $(video).css('max-height', '100%');
13989
+ $(video).css('max-width', '100%');
13990
+ video.style.position = 'absolute';
13991
+ $(video).css('left', '50%');
13992
+ $(video).css('top', '50%');
13993
+ video.style.transform = 'translate(-50%, -50%) rotate(180deg)';
13988
13994
  } else if (rotateIndex == 1) {
13989
13995
  //1
13990
13996
  $(video).attr('class', 'video-box');
13991
13997
  video.style.position = 'absolute';
13992
13998
  video.style.transform = 'rotate(90deg)';
13999
+ $(video).css('max-height', '');
14000
+ $(video).css('max-width', '');
13993
14001
 
13994
14002
  if (videoWidth / videoHeight > liWidth / liHeight) {
13995
14003
  //视频横向留白
@@ -14328,7 +14336,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14328
14336
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14329
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>';
14330
14338
 
14331
- 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>');
14339
+ checkUserMediaAvailable() && (videoHtml += '<button type="button" class="rotate-btn hide" name="rotateVideo" rotate-index="0" title="视频旋转"></button><button type="button" class="unsend-audio-btn hide" name="sendAudio"></button>');
14332
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>';
14333
14341
  }
14334
14342
 
Binary file