ucservice 1.6.9 → 1.7.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 +8 -1
- 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 +8 -1
- 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/src/css/scooper.video.css +43 -4
- package/src/scooper.video.js +9 -1
package/package.json
CHANGED
|
@@ -86,6 +86,11 @@
|
|
|
86
86
|
width: 100%;
|
|
87
87
|
height: 100%;
|
|
88
88
|
}
|
|
89
|
+
.video-main .video-box.scale-scene{
|
|
90
|
+
width: 100%!important;
|
|
91
|
+
height: 100%!important;
|
|
92
|
+
object-fit: fill!important;
|
|
93
|
+
}
|
|
89
94
|
.video-main.mode-4 .close-btn {
|
|
90
95
|
width: 1.1rem;
|
|
91
96
|
height: 1.1rem;
|
|
@@ -152,6 +157,25 @@
|
|
|
152
157
|
width: 1.3rem;
|
|
153
158
|
height: 1.3rem;
|
|
154
159
|
}
|
|
160
|
+
|
|
161
|
+
.video-main.mode-4 .scale-btn {
|
|
162
|
+
bottom: 3px;
|
|
163
|
+
right: 6.8rem;
|
|
164
|
+
width: 1.5rem;
|
|
165
|
+
height: 1.5rem;
|
|
166
|
+
}
|
|
167
|
+
.video-main.mode-9 .scale-btn {
|
|
168
|
+
bottom: 3px;
|
|
169
|
+
right: 6.2rem;
|
|
170
|
+
width: 1.42rem;
|
|
171
|
+
height: 1.42rem;
|
|
172
|
+
}
|
|
173
|
+
.video-main.mode-16 .scale-btn {
|
|
174
|
+
bottom: 3px;
|
|
175
|
+
right: 5.7rem;
|
|
176
|
+
width: 1.3rem;
|
|
177
|
+
height: 1.3rem;
|
|
178
|
+
}
|
|
155
179
|
.video-main.mode-9 .stream-loading {
|
|
156
180
|
width: 11.4rem;
|
|
157
181
|
height: 2.1rem;
|
|
@@ -213,8 +237,8 @@
|
|
|
213
237
|
bottom: -8px;
|
|
214
238
|
right: 70px;
|
|
215
239
|
border: 0;
|
|
216
|
-
width:
|
|
217
|
-
height:
|
|
240
|
+
width: 3rem;
|
|
241
|
+
height: 3rem;
|
|
218
242
|
float: left;
|
|
219
243
|
/* background:url("~@/img/yy.png"); */
|
|
220
244
|
background-size: 100% 100%;
|
|
@@ -245,13 +269,28 @@
|
|
|
245
269
|
background-size: 100% 100%;
|
|
246
270
|
background-color: rgba(0,0,0,0);
|
|
247
271
|
}
|
|
272
|
+
.rotate-btn .bggray, .scale-btn .bggray{
|
|
273
|
+
filter: grayscale(100%);
|
|
274
|
+
}
|
|
275
|
+
.scale-btn {
|
|
276
|
+
position: absolute;
|
|
277
|
+
bottom: 1px;
|
|
278
|
+
right: 8.6rem;
|
|
279
|
+
border: 0;
|
|
280
|
+
width: 1.75rem;
|
|
281
|
+
height: 1.75rem;
|
|
282
|
+
float: left;
|
|
283
|
+
/* background-image: url("~@/img/yy_gb.png"); */
|
|
284
|
+
background-size: 100% 100%;
|
|
285
|
+
background-color: rgba(0,0,0,0);
|
|
286
|
+
}
|
|
248
287
|
.recv-audio-btn {
|
|
249
288
|
position: absolute;
|
|
250
289
|
bottom: -8px;
|
|
251
290
|
right: 30px;
|
|
252
291
|
border: 0;
|
|
253
|
-
width:
|
|
254
|
-
height:
|
|
292
|
+
width: 3rem;
|
|
293
|
+
height: 3rem;
|
|
255
294
|
float: left;
|
|
256
295
|
/* background:url("~@/img/hm_shengyin_sel.png"); */
|
|
257
296
|
background-size: 100% 100%;
|
package/src/scooper.video.js
CHANGED
|
@@ -2367,6 +2367,14 @@
|
|
|
2367
2367
|
//jquery方式阻止默认事件 & 冒泡事件
|
|
2368
2368
|
return false;
|
|
2369
2369
|
})
|
|
2370
|
+
videoFlagObj.find('button[name=scaleVideo]').click(function(){
|
|
2371
|
+
let isgray = $(this).hasClass('bggray')
|
|
2372
|
+
if(isgray) $(this).parent().parent().find('.video-box').addClass('scale-scene')
|
|
2373
|
+
else $(this).parent().parent().find('.video-box').removeClass('scale-scene')
|
|
2374
|
+
$(this).toggleClass("bggray")
|
|
2375
|
+
//jquery方式阻止默认事件 & 冒泡事件
|
|
2376
|
+
return false;
|
|
2377
|
+
})
|
|
2370
2378
|
|
|
2371
2379
|
//接收音频事件
|
|
2372
2380
|
videoFlagObj.find("button[name='recvAudio']").click(function(){
|
|
@@ -2803,7 +2811,7 @@
|
|
|
2803
2811
|
'<div class="operate-btn">';
|
|
2804
2812
|
//videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
|
|
2805
2813
|
// checkUserMediaAvailable() &&
|
|
2806
|
-
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>';
|
|
2814
|
+
videoHtml += '<button type="button" class="scale-btn bggray hide" name="scaleVideo" title="视频画面铺满"></button><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>';
|
|
2807
2815
|
videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' +
|
|
2808
2816
|
'<button type="button" class="close-btn hide" name="closeVideo"></button>' +
|
|
2809
2817
|
'</div>' +
|