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.
- package/dist/ucservice.common.js +29 -20
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.css +1 -1
- package/dist/ucservice.umd.js +29 -20
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +2 -2
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/css/scooper.video.css +14 -14
- package/src/scooper.video.js +28 -19
package/dist/ucservice.common.js
CHANGED
|
@@ -13951,45 +13951,53 @@ 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.
|
|
13957
|
-
video.
|
|
13958
|
-
|
|
13959
|
-
$(video).css('
|
|
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
|
//视频横向留白
|
|
13968
|
-
$(video).css('width',
|
|
13969
|
-
$(video).css('height',
|
|
13970
|
-
$(video).css('left', 'calc(' +
|
|
13971
|
-
$(video).css('top', 'calc(-' +
|
|
13972
|
+
$(video).css('width', 'auto');
|
|
13973
|
+
$(video).css('height', liWidth);
|
|
13974
|
+
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13975
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
13972
13976
|
} else {
|
|
13973
13977
|
//视频纵向留白
|
|
13974
|
-
$(video).css('
|
|
13975
|
-
$(video).css('
|
|
13976
|
-
$(video).css('left', 'calc(' +
|
|
13977
|
-
$(video).css('top', 'calc(-' +
|
|
13978
|
+
$(video).css('width', liHeight);
|
|
13979
|
+
$(video).css('height', 'auto');
|
|
13980
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13981
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
13978
13982
|
}
|
|
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.
|
|
13985
|
-
video.
|
|
13986
|
-
|
|
13987
|
-
$(video).css('
|
|
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
|
//视频横向留白
|
|
@@ -14088,7 +14096,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14088
14096
|
videoFlagObj.find('button[name=rotateVideo]').click(function () {
|
|
14089
14097
|
let rotateIndex = Number($(this).attr("rotate-index"));
|
|
14090
14098
|
rotateIndex++;
|
|
14091
|
-
|
|
14099
|
+
rotateIndex %= 4;
|
|
14100
|
+
$(this).attr("rotate-index", rotateIndex);
|
|
14092
14101
|
let li = $(this).parent().parent()[0];
|
|
14093
14102
|
me.videoRotateSize(li, rotateIndex);
|
|
14094
14103
|
}); //接收音频事件
|
|
@@ -14327,7 +14336,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14327
14336
|
for (let i = index; i < index + me._opts.windowsNum; i++) {
|
|
14328
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>';
|
|
14329
14338
|
|
|
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>');
|
|
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>');
|
|
14331
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>';
|
|
14332
14341
|
}
|
|
14333
14342
|
|
|
Binary file
|