ucservice 1.4.7 → 1.5.0

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.4.7",
4
+ "version": "1.5.0",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
@@ -612,9 +612,6 @@
612
612
  me.dispatch('screenchange',{windowNums: num});
613
613
  me._opts.windows = num;
614
614
  me._opts.extra = extra;
615
-
616
- //设置旋转了的视频样式
617
-
618
615
  },
619
616
 
620
617
  /**
@@ -1594,12 +1591,25 @@
1594
1591
  //分屏切换事件
1595
1592
  this.dispatch('screenchange', {windowNums:num, flag:me._opts.flag});
1596
1593
 
1594
+ //设置旋转了的视频样式
1595
+ let videoLi = document.getElementById('videoRef').querySelectorAll('li')
1596
+ me.VIDEO_DATA.forEach((item, index) => {
1597
+ let tel = item.video
1598
+ if (!tel&&item.id) {
1599
+ videoLi[index].querySelector('video').style = ''
1600
+ videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
1601
+ }
1602
+ })
1597
1603
  //设置旋转视频的样式
1598
1604
  for(let k = 0; k < _li.length; k++){
1599
1605
  let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
1600
- if(rotateIndex != 0 && rotateIndex != 2)
1601
- me.videoRotateSize(_li.eq(k)[0], rotateIndex);
1606
+ if(rotateIndex != 0 && rotateIndex != 2){
1607
+ setTimeout(() => {
1608
+ me.videoRotateSize(_li.eq(k)[0], rotateIndex);
1609
+ }, 200);
1610
+ }
1602
1611
  }
1612
+
1603
1613
  },
1604
1614
 
1605
1615
  /**