ucservice 1.7.1 → 1.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ucservice",
3
3
  "private": false,
4
- "version": "1.7.1",
4
+ "version": "1.7.4",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
@@ -159,22 +159,22 @@
159
159
  }
160
160
 
161
161
  .video-main.mode-4 .scale-btn {
162
- bottom: 3px;
163
- right: 6.8rem;
164
- width: 1.5rem;
165
- height: 1.5rem;
162
+ bottom: 7px;
163
+ right: 7.5rem;
164
+ width: 1rem;
165
+ height: 1rem;
166
166
  }
167
167
  .video-main.mode-9 .scale-btn {
168
- bottom: 3px;
169
- right: 6.2rem;
170
- width: 1.42rem;
171
- height: 1.42rem;
168
+ bottom: 6px;
169
+ right: 7rem;
170
+ width: 0.9rem;
171
+ height: 0.9rem;
172
172
  }
173
173
  .video-main.mode-16 .scale-btn {
174
- bottom: 3px;
175
- right: 5.7rem;
176
- width: 1.3rem;
177
- height: 1.3rem;
174
+ bottom: 7px;
175
+ right: 6rem;
176
+ width: 0.8rem;
177
+ height: 0.8rem;
178
178
  }
179
179
  .video-main.mode-9 .stream-loading {
180
180
  width: 11.4rem;
@@ -269,16 +269,16 @@
269
269
  background-size: 100% 100%;
270
270
  background-color: rgba(0,0,0,0);
271
271
  }
272
- .rotate-btn .bggray, .scale-btn .bggray{
273
- filter: grayscale(100%);
272
+ .rotate-btn.bggray, .scale-btn.bggray{
273
+ filter: contrast(0.5);
274
274
  }
275
275
  .scale-btn {
276
276
  position: absolute;
277
- bottom: 1px;
278
- right: 8.6rem;
277
+ bottom: 5px;
278
+ right: 9.5rem;
279
279
  border: 0;
280
- width: 1.75rem;
281
- height: 1.75rem;
280
+ width: 1.25rem;
281
+ height: 1.25rem;
282
282
  float: left;
283
283
  /* background-image: url("~@/img/yy_gb.png"); */
284
284
  background-size: 100% 100%;
@@ -1569,6 +1569,11 @@
1569
1569
  }
1570
1570
 
1571
1571
  this.VIDEO_DATA[index].close();
1572
+ let video = $(me.selector + ' li ')[index].find('video')
1573
+ if(video.hasClass('scale-scene')) {
1574
+ video.removeClass('scale-scene');
1575
+ video.parent().find('.scale-btn').addClass('bggray')
1576
+ }
1572
1577
 
1573
1578
  if (!isSave) {
1574
1579
  this.VIDEO_DATA[index].closeType = 'close';
@@ -2367,6 +2372,14 @@
2367
2372
  //jquery方式阻止默认事件 & 冒泡事件
2368
2373
  return false;
2369
2374
  })
2375
+ videoFlagObj.find('button[name=scaleVideo]').click(function(){
2376
+ let isgray = $(this).hasClass('bggray')
2377
+ if(isgray) $(this).parent().parent().find('.video-box').addClass('scale-scene')
2378
+ else $(this).parent().parent().find('.video-box').removeClass('scale-scene')
2379
+ $(this).toggleClass("bggray")
2380
+ //jquery方式阻止默认事件 & 冒泡事件
2381
+ return false;
2382
+ })
2370
2383
 
2371
2384
  //接收音频事件
2372
2385
  videoFlagObj.find("button[name='recvAudio']").click(function(){