ucservice 1.4.1 → 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.
@@ -1 +1 @@
1
- .video-main{position:absolute;top:0;left:-25px;right:-12px;bottom:-18px}.video-main-full{position:absolute;top:1px;left:1px;right:1px;bottom:1px}.video-main-full>li,.video-main>li{border:1px solid #aaa;float:left;position:relative}.video-main-full>li.loading,.video-main>li.loading{background:#000}.video-main-full>li:hover,.video-main>li:hover{border:1px solid #ffb951}.video-main-full>li.sel,.video-main>li.sel{border:1px solid #ef8601}.video-main-full.mode-1>li,.video-main.mode-1>li{width:98.5%;height:98.5%;list-style:none}.video-main-full.mode-1>li .info,.video-main.mode-1>li .info{font-size:20px;bottom:40px}.video-main.mode-4>li{width:49%;height:49%;list-style:none}.video-main.mode-4>li .info{font-size:18px;bottom:20px}.video-main.mode-6>li{width:33.33%;height:33.33%}.video-main.mode-6>li .info{font-size:14px;bottom:13px}.video-main.mode-6 .screen-1{width:66.66%;height:66.65%}.video-main.mode-6 .screen-1 .info{font-size:18px;bottom:30px}.video-main.mode-9>li{width:32.5%;height:32.5%;list-style:none}.video-main.mode-9>li .info{font-size:12px;bottom:14px}.video-main.mode-16>li{width:24.5%;height:24.5%;list-style:none}.video-main.mode-16>li .info{font-size:8px;bottom:10px}.video-box{-o-object-fit:fill;object-fit:fill;display:none;width:100%;height:100%}.stream-loading{width:200px;height:30px;line-height:30px;position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-100px;color:#fff;font-size:16px;padding-left:30px}.info{color:#fff;left:10px;width:67%}.info,.operate-btn{position:absolute;float:left;z-index:1}.operate-btn{width:24px;height:24x;right:1px;bottom:2px;cursor:pointer}.send-audio-btn,.unsend-audio-btn{bottom:-8px;right:70px;width:48px;height:48px}.rotate-btn,.send-audio-btn,.unsend-audio-btn{position:absolute;border:0;float:left;background-size:100% 100%;background-color:transparent}.rotate-btn{bottom:1px;right:76px;width:28px;height:28px}.recv-audio-btn,.unrecv-audio-btn{bottom:-8px;right:30px;width:48px;height:48px}.close-btn,.recv-audio-btn,.unrecv-audio-btn{position:absolute;border:0;float:left;background-size:100% 100%;background-color:transparent}.close-btn{bottom:5px;right:5px;width:20px;height:20px}.operation{position:absolute;width:100%;height:12%;bottom:0;background:rgba(0,0,0,.3);color:#fff}.hide{display:none}
1
+ .video-main{position:absolute;top:0;left:-25px;right:-12px;bottom:-18px}.video-main-full{position:absolute;top:1px;left:1px;right:1px;bottom:1px}.video-main-full>li,.video-main>li{border:1px solid #aaa;float:left;position:relative}.video-main-full>li.loading,.video-main>li.loading{background:#000}.video-main-full>li:hover,.video-main>li:hover{border:1px solid #ffb951}.video-main-full>li.sel,.video-main>li.sel{border:1px solid #ef8601}.video-main-full.mode-1>li,.video-main.mode-1>li{width:98.5%;height:98.5%;list-style:none}.video-main-full.mode-1>li .info,.video-main.mode-1>li .info{font-size:20px;bottom:40px}.video-main.mode-4>li{width:49%;height:49%;list-style:none}.video-main.mode-4>li .info{font-size:18px;bottom:20px}.video-main.mode-6>li{width:33.33%;height:33.33%}.video-main.mode-6>li .info{font-size:14px;bottom:13px}.video-main.mode-6 .screen-1{width:66.66%;height:66.65%}.video-main.mode-6 .screen-1 .info{font-size:18px;bottom:30px}.video-main.mode-9>li{width:32.5%;height:32.5%;list-style:none}.video-main.mode-9>li .info{font-size:12px;bottom:14px}.video-main.mode-16>li{width:24.5%;height:24.5%;list-style:none}.video-main.mode-16>li .info{font-size:8px;bottom:10px}.video-box{-o-object-fit:fill;object-fit:fill;display:none;width:100%;height:100%}.stream-loading{width:200px;height:30px;line-height:30px;position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-100px;color:#fff;font-size:16px;padding-left:30px}.info{color:#fff;left:10px;width:67%}.info,.operate-btn{position:absolute;float:left;z-index:1}.operate-btn{width:1.5rem;height:1.5rem;right:1px;bottom:2px;cursor:pointer}.send-audio-btn,.unsend-audio-btn{bottom:-8px;right:70px;width:3rem;height:3rem}.rotate-btn,.send-audio-btn,.unsend-audio-btn{position:absolute;border:0;float:left;background-size:100% 100%;background-color:transparent}.rotate-btn{bottom:1px;right:76px;width:1.75rem;height:1.75rem}.recv-audio-btn,.unrecv-audio-btn{bottom:-8px;right:30px;width:3rem;height:3rem}.close-btn,.recv-audio-btn,.unrecv-audio-btn{position:absolute;border:0;float:left;background-size:100% 100%;background-color:transparent}.close-btn{bottom:5px;right:5px;width:1.25rem;height:1.25rem}.operation{position:absolute;width:100%;height:12%;bottom:0;background:rgba(0,0,0,.3);color:#fff}.hide{display:none}
@@ -13960,45 +13960,53 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13960
13960
  if (rotateIndex == 0) {
13961
13961
  //0
13962
13962
  $(video).attr('class', 'video-box');
13963
- $(video).css('height', '');
13963
+ $(video).css('height', 'auto');
13964
13964
  $(video).css('width', 'auto');
13965
- video.style.position = 'static';
13966
- video.style.transform = 'none';
13967
- $(video).css('left', '');
13968
- $(video).css('top', '');
13965
+ $(video).css('max-height', '100%');
13966
+ $(video).css('max-width', '100%');
13967
+ video.style.position = 'absolute';
13968
+ $(video).css('left', '50%');
13969
+ $(video).css('top', '50%');
13970
+ video.style.transform = 'translate(-50%, -50%)';
13969
13971
  } else if (rotateIndex == 3) {
13970
13972
  //3
13971
13973
  $(video).attr('class', 'video-box');
13972
13974
  video.style.position = 'absolute';
13973
13975
  video.style.transform = 'rotate(270deg)';
13976
+ $(video).css('max-height', '');
13977
+ $(video).css('max-width', '');
13974
13978
 
13975
13979
  if (videoWidth / videoHeight > liWidth / liHeight) {
13976
13980
  //视频横向留白
13977
- $(video).css('width', liHeight);
13978
- $(video).css('height', 'auto');
13979
- $(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
13980
- $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
13981
+ $(video).css('width', 'auto');
13982
+ $(video).css('height', liWidth);
13983
+ $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13984
+ $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
13981
13985
  } else {
13982
13986
  //视频纵向留白
13983
- $(video).css('height', liWidth);
13984
- $(video).css('width', 'auto');
13985
- $(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
13986
- $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
13987
+ $(video).css('width', liHeight);
13988
+ $(video).css('height', 'auto');
13989
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13990
+ $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
13987
13991
  }
13988
13992
  } else if (rotateIndex == 2) {
13989
13993
  //2
13990
13994
  $(video).attr('class', 'video-box');
13991
- $(video).css('height', '');
13995
+ $(video).css('height', 'auto');
13992
13996
  $(video).css('width', 'auto');
13993
- video.style.position = 'static';
13994
- video.style.transform = 'rotate(180deg)';
13995
- $(video).css('left', '');
13996
- $(video).css('top', '');
13997
+ $(video).css('max-height', '100%');
13998
+ $(video).css('max-width', '100%');
13999
+ video.style.position = 'absolute';
14000
+ $(video).css('left', '50%');
14001
+ $(video).css('top', '50%');
14002
+ video.style.transform = 'translate(-50%, -50%) rotate(180deg)';
13997
14003
  } else if (rotateIndex == 1) {
13998
14004
  //1
13999
14005
  $(video).attr('class', 'video-box');
14000
14006
  video.style.position = 'absolute';
14001
14007
  video.style.transform = 'rotate(90deg)';
14008
+ $(video).css('max-height', '');
14009
+ $(video).css('max-width', '');
14002
14010
 
14003
14011
  if (videoWidth / videoHeight > liWidth / liHeight) {
14004
14012
  //视频横向留白
@@ -14097,7 +14105,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14097
14105
  videoFlagObj.find('button[name=rotateVideo]').click(function () {
14098
14106
  let rotateIndex = Number($(this).attr("rotate-index"));
14099
14107
  rotateIndex++;
14100
- $(this).attr("rotate-index", rotateIndex % 4);
14108
+ rotateIndex %= 4;
14109
+ $(this).attr("rotate-index", rotateIndex);
14101
14110
  let li = $(this).parent().parent()[0];
14102
14111
  me.videoRotateSize(li, rotateIndex);
14103
14112
  }); //接收音频事件
@@ -14336,7 +14345,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14336
14345
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14337
14346
  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
14347
 
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>');
14348
+ 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>');
14340
14349
  videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
14341
14350
  }
14342
14351
 
Binary file