ucservice 1.5.9 → 1.6.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ucservice",
3
3
  "private": false,
4
- "version": "1.5.9",
4
+ "version": "1.6.2",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
@@ -1663,13 +1663,18 @@
1663
1663
 
1664
1664
  //设置旋转了的视频样式
1665
1665
  if(document.querySelector(me.selector)){
1666
- let videoLi = document.querySelector(me.selector).querySelectorAll('li')
1666
+ let videoLi = {}
1667
+ Array.prototype.slice.call(document.getElementById('videoRef').querySelectorAll('li'), 0).forEach(liItem => {
1668
+ videoLi[$(liItem).attr('index')] = liItem
1669
+ })
1667
1670
  me.VIDEO_DATA.forEach((item, index) => {
1668
1671
  let tel = item.video
1669
1672
  if (!tel&&item.id) {
1670
- videoLi[index].querySelector('video').style = ''
1673
+ if(videoLi[index]){
1674
+ videoLi[index].querySelector('video').style = ''
1671
1675
  if(videoLi[index].querySelector('.rotate-btn'))
1672
1676
  videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
1677
+ }
1673
1678
  }
1674
1679
  })
1675
1680
  }
@@ -2116,6 +2121,7 @@
2116
2121
  })
2117
2122
 
2118
2123
  $(me.selector + ' li').bind("drop", function (ev) {
2124
+ console.log(ev)
2119
2125
  ev.preventDefault();
2120
2126
  if(src.prop("outerHTML") === $(this).prop("outerHTML")){
2121
2127
  return;
@@ -2131,6 +2137,7 @@
2131
2137
  src.insertAfter(target);
2132
2138
  target.insertBefore($(me.selector +' .video-main li.screen').eq(srcIndex));
2133
2139
  }
2140
+ let videoData = me.VIDEO_DATA;
2134
2141
  })
2135
2142
  },
2136
2143
 
@@ -2214,6 +2221,7 @@
2214
2221
  },
2215
2222
 
2216
2223
  videoRotateSize(li, rotateIndex){
2224
+ if(!li) return
2217
2225
  let video = li.querySelector('video');
2218
2226
  let videoWidth = video.videoWidth;
2219
2227
  let videoHeight = video.videoHeight;
@@ -3591,6 +3599,7 @@
3591
3599
  this.packetsLostSum = 0;
3592
3600
  this.packetsReceivedSum = 0;
3593
3601
  //清除显示的视频信息
3602
+ if(document.getElementById('info-' + (Number(this.index) + Number(1))))
3594
3603
  document.getElementById('info-' + (Number(this.index) + Number(1))).innerHTML = '';
3595
3604
  //隐藏视频信息
3596
3605
  this.tagBox.parent().find('.info').hide();