ucservice 1.7.6 → 1.7.7

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.6",
4
+ "version": "1.7.7",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
@@ -1573,6 +1573,7 @@
1573
1573
  if(video.hasClass('scale-scene')) {
1574
1574
  video.removeClass('scale-scene');
1575
1575
  video.parent().find('.scale-btn').addClass('bggray')
1576
+ video.parent().find('.scale-btn').attr('title', '视频画面铺满')
1576
1577
  }
1577
1578
 
1578
1579
  if (!isSave) {
@@ -1693,11 +1694,12 @@
1693
1694
  //设置旋转视频的样式
1694
1695
  for(let k = 0; k < _li.length; k++){
1695
1696
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
1696
- // if(rotateIndex != 0 && rotateIndex != 2){
1697
+ let scaleBtn = _li.eq(k).find('button[name=scaleVideo]').hasClass('bggray')
1698
+ if(scaleBtn){
1697
1699
  setTimeout(() => {
1698
1700
  me.videoRotateSize(_li.eq(k)[0], rotateIndex);
1699
1701
  }, 200);
1700
- // }
1702
+ }
1701
1703
  }
1702
1704
  },
1703
1705
 
@@ -2374,8 +2376,14 @@
2374
2376
  })
2375
2377
  videoFlagObj.find('button[name=scaleVideo]').click(function(){
2376
2378
  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
+ if(isgray) {
2380
+ $(this).parent().parent().find('.video-box').addClass('scale-scene')
2381
+ $(this).attr('title', '原视频分辨率展示')
2382
+ }
2383
+ else {
2384
+ $(this).parent().parent().find('.video-box').removeClass('scale-scene')
2385
+ $(this).attr('title', '视频画面铺满')
2386
+ }
2379
2387
  $(this).toggleClass("bggray")
2380
2388
  //jquery方式阻止默认事件 & 冒泡事件
2381
2389
  return false;