ucservice 1.5.8 → 1.6.1

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.
@@ -13210,7 +13210,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13210
13210
 
13211
13211
  if (!tel && item.id) {
13212
13212
  videoLi[index].querySelector('video').style = '';
13213
- videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13213
+ if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13214
13214
  } else {
13215
13215
  let rotateIndex = $(videoLi[index]).find('button[name=rotateVideo]').attr('rotate-index');
13216
13216
  setTimeout(() => {
@@ -13244,7 +13244,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13244
13244
 
13245
13245
  if (!tel && item.id) {
13246
13246
  videoLi[index].querySelector('video').style = '';
13247
- videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13247
+ if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13248
13248
  } else {
13249
13249
  let rotateIndex = $(videoLi[index]).find('button[name=rotateVideo]').attr('rotate-index');
13250
13250
  setTimeout(() => {
@@ -13557,8 +13557,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13557
13557
  let tel = item.video;
13558
13558
 
13559
13559
  if (!tel && item.id) {
13560
- videoLi[index].querySelector('video').style = '';
13561
- if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13560
+ if (videoLi[index]) {
13561
+ videoLi[index].querySelector('video').style = '';
13562
+ if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13563
+ }
13562
13564
  }
13563
13565
  });
13564
13566
  } //设置旋转视频的样式
@@ -14127,6 +14129,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14127
14129
  },
14128
14130
 
14129
14131
  videoRotateSize(li, rotateIndex) {
14132
+ if (!li) return;
14130
14133
  let video = li.querySelector('video');
14131
14134
  let videoWidth = video.videoWidth;
14132
14135
  let videoHeight = video.videoHeight;
@@ -14734,8 +14737,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14734
14737
 
14735
14738
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14736
14739
  videoHtml += '<li class="screen screen-' + i + '" index="' + (i - 1) + '" draggable="true"><video muted class="video-box" id="video-' + i + '" autoplay ></video>' + '<div class="hide info ' + position + '" id="info-' + i + '"></div>' + '<div class="hide frame-decoded" id="frame-decoded-' + i + '"style="position:absolute;float:left;color:#fff;width:67%;z-index:1;top:135px;left:180px">网络信号不佳</div>' + '<div class="operate-btn">'; //videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
14740
+ // checkUserMediaAvailable() &&
14737
14741
 
14738
- checkUserMediaAvailable() && (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>');
14742
+ 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>';
14739
14743
  videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
14740
14744
  }
14741
14745
 
@@ -15617,7 +15621,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15617
15621
  this.packetsLostSum = 0;
15618
15622
  this.packetsReceivedSum = 0; //清除显示的视频信息
15619
15623
 
15620
- document.getElementById('info-' + (Number(this.index) + Number(1))).innerHTML = ''; //隐藏视频信息
15624
+ if (document.getElementById('info-' + (Number(this.index) + Number(1)))) document.getElementById('info-' + (Number(this.index) + Number(1))).innerHTML = ''; //隐藏视频信息
15621
15625
 
15622
15626
  this.tagBox.parent().find('.info').hide(); //隐藏音频喇叭
15623
15627
 
Binary file