ucservice 2.5.0 → 2.5.2
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 +25 -2
- 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 +25 -2
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/ucservice.css
CHANGED
|
@@ -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>li .info-self{position:absolute;left:3.2rem;top:.26rem;font-size:1rem;z-index:9;width:calc(100% - 3.2rem)}.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%}.video-main .video-box.scale-scene{
|
|
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>li .info-self{position:absolute;left:3.2rem;top:.26rem;font-size:1rem;z-index:9;width:calc(100% - 3.2rem)}.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%}.video-main .video-box.scale-scene{-o-object-fit:fill!important;object-fit:fill!important}.video-main.mode-4 .close-btn{width:1.1rem;height:1.1rem}.video-main.mode-9 .close-btn{width:.95rem;height:.95rem}.video-main.mode-16 .close-btn{width:.85rem;height:.85rem}.video-main.mode-4 .autoscreen-btn,.video-main.mode-4 .fullscreen-btn{width:1.1rem;height:1.1rem}.video-main.mode-4 .autoscreen-btn,.video-main.mode-9 .fullscreen-btn{width:.95rem;height:.95rem}.video-main.mode-4 .autoscreen-btn,.video-main.mode-16 .fullscreen-btn{width:.85rem;height:.85rem}.video-main.mode-4 .recv-audio-btn{bottom:-4px;right:1.8rem;width:2.5rem;height:2.5rem}.video-main.mode-9 .recv-audio-btn{bottom:-3px;right:1.6rem;width:2.2rem;height:2.2rem}.video-main.mode-16 .recv-audio-btn{bottom:-2px;right:1.4rem;width:2rem;height:2rem}.video-main.mode-4 .unrecv-audio-btn{bottom:-4px;right:1.8rem;width:2.5rem;height:2.5rem}.video-main.mode-9 .unrecv-audio-btn{bottom:-3px;right:1.6rem;width:2.2rem;height:2.2rem}.video-main.mode-16 .unrecv-audio-btn{bottom:-2px;right:1.4rem;width:2rem;height:2rem}.video-main.mode-4 .rotate-btn{bottom:3px;right:4.8rem;width:1.5rem;height:1.5rem}.video-main.mode-9 .rotate-btn{bottom:3px;right:4.2rem;width:1.42rem;height:1.42rem}.video-main.mode-16 .rotate-btn{bottom:3px;right:3.7rem;width:1.3rem;height:1.3rem}.video-main.mode-4 .scale-btn{bottom:7px;right:7.5rem;width:1rem;height:1rem}.video-main.mode-9 .scale-btn{bottom:6px;right:7rem;width:.9rem;height:.9rem}.video-main.mode-16 .scale-btn{bottom:7px;right:6rem;width:.8rem;height:.8rem}.video-main.mode-9 .stream-loading{width:11.4rem;height:2.1rem;line-height:2.1rem;font-size:15px;background-size:15px}.video-main.mode-16 .stream-loading{width:9.3rem;height:2.1rem;line-height:2.1rem;font-size:14px;background-size:14px;margin-left:5.7rem}.video-main.mode-16 .real-result,.video-main.mode-16 .result{font-size:12px}.stream-loading{width:14rem;height:2.1rem;line-height:2.1rem;position:absolute;top:50%;left:50%;margin-top:-1rem;margin-left:-7.1rem;color:#fff;font-size:1.14rem;padding-left:2.1rem}.info{color:#fff;left:10px;width:67%}.info,.operate-btn{position:absolute;float:left;z-index:1}.operate-btn{width:100%;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:6.07rem;width:1.75rem;height:1.75rem}.rotate-btn.bggray,.scale-btn.bggray{filter:contrast(.5)}.scale-btn{position:absolute;bottom:5px;right:9.5rem;border:0;width:1.25rem;height:1.25rem;float:left;background-size:100% 100%;background-color:transparent}.recv-audio-btn,.unrecv-audio-btn{position:absolute;bottom:-8px;right:30px;border:0;width:3rem;height:3rem;float:left;background-size:100% 100%;background-color:transparent}.autoscreen-btn,.fullscreen-btn{right:calc(100% - 2.5rem);width:1.35rem;height:1.35rem}.autoscreen-btn,.close-btn,.fullscreen-btn{position:absolute;bottom:5px;border:0;background-size:100% 100%;background-color:transparent}.close-btn{right:5px;width:1.25rem;height:1.25rem;float:left}.operation{position:absolute;width:100%;height:12%;bottom:0;background:rgba(0,0,0,.3);color:#fff}.hide{display:none}
|
package/dist/ucservice.umd.js
CHANGED
|
@@ -14187,6 +14187,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14187
14187
|
let vHeight = video.offsetHeight;
|
|
14188
14188
|
let liWidth = li.offsetWidth;
|
|
14189
14189
|
let liHeight = li.offsetHeight;
|
|
14190
|
+
let isScale = video.classList.contains('scale-scene');
|
|
14190
14191
|
|
|
14191
14192
|
if (rotateIndex == 0) {
|
|
14192
14193
|
//0
|
|
@@ -14200,6 +14201,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14200
14201
|
$(video).css('top', '50%');
|
|
14201
14202
|
if (videoWidth / videoHeight < liWidth / liHeight) $(video).css('height', '100%');else $(video).css('width', '100%');
|
|
14202
14203
|
video.style.transform = 'translate(-50%, -50%)';
|
|
14204
|
+
|
|
14205
|
+
if (isScale) {
|
|
14206
|
+
$(video).css('height', '100%');
|
|
14207
|
+
$(video).css('width', '100%');
|
|
14208
|
+
}
|
|
14203
14209
|
} else if (rotateIndex == 3) {
|
|
14204
14210
|
//3
|
|
14205
14211
|
// $(video).attr('class', 'video-box');
|
|
@@ -14221,6 +14227,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14221
14227
|
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14222
14228
|
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14223
14229
|
}
|
|
14230
|
+
|
|
14231
|
+
if (isScale) {
|
|
14232
|
+
$(video).css('height', liWidth);
|
|
14233
|
+
$(video).css('width', liHeight);
|
|
14234
|
+
}
|
|
14224
14235
|
} else if (rotateIndex == 2) {
|
|
14225
14236
|
//2
|
|
14226
14237
|
// $(video).attr('class', 'video-box');
|
|
@@ -14233,6 +14244,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14233
14244
|
$(video).css('top', '50%');
|
|
14234
14245
|
if (videoWidth / videoHeight < liWidth / liHeight) $(video).css('height', '100%');else $(video).css('width', '100%');
|
|
14235
14246
|
video.style.transform = 'translate(-50%, -50%) rotate(180deg)';
|
|
14247
|
+
|
|
14248
|
+
if (isScale) {
|
|
14249
|
+
$(video).css('height', '100%');
|
|
14250
|
+
$(video).css('width', '100%');
|
|
14251
|
+
}
|
|
14236
14252
|
} else if (rotateIndex == 1) {
|
|
14237
14253
|
//1
|
|
14238
14254
|
// $(video).attr('class', 'video-box');
|
|
@@ -14254,6 +14270,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14254
14270
|
$(video).css('left', 'calc(-' + videoWidth * liWidth / videoHeight / 2 + 'px + ' + liWidth + 'px / 2)');
|
|
14255
14271
|
$(video).css('top', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
14256
14272
|
}
|
|
14273
|
+
|
|
14274
|
+
if (isScale) {
|
|
14275
|
+
$(video).css('height', liWidth);
|
|
14276
|
+
$(video).css('width', liHeight);
|
|
14277
|
+
}
|
|
14257
14278
|
}
|
|
14258
14279
|
},
|
|
14259
14280
|
|
|
@@ -14332,6 +14353,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14332
14353
|
$(this).attr('title', '视频画面铺满');
|
|
14333
14354
|
}
|
|
14334
14355
|
|
|
14356
|
+
me.videoRotateSize($(this).parent().parent(), $(this).parent().find('button[name=rotateVideo]').attr('rotate-index'));
|
|
14335
14357
|
$(this).toggleClass("bggray"); //jquery方式阻止默认事件 & 冒泡事件
|
|
14336
14358
|
|
|
14337
14359
|
return false;
|
|
@@ -14345,9 +14367,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14345
14367
|
} else {
|
|
14346
14368
|
$(this).attr('class', 'fullscreen-btn');
|
|
14347
14369
|
$(this).attr('title', '全屏');
|
|
14348
|
-
}
|
|
14349
|
-
// return false;
|
|
14370
|
+
}
|
|
14350
14371
|
|
|
14372
|
+
me.videoRotateSize($(this).parent().parent(), $(this).parent().find('button[name=rotateVideo]').attr('rotate-index')); //jquery方式阻止默认事件 & 冒泡事件
|
|
14373
|
+
// return false;
|
|
14351
14374
|
}); //接收音频事件
|
|
14352
14375
|
|
|
14353
14376
|
videoFlagObj.find("button[name='recvAudio']").click(function () {
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|