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.
@@ -13201,7 +13201,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13201
13201
 
13202
13202
  if (!tel && item.id) {
13203
13203
  videoLi[index].querySelector('video').style = '';
13204
- videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13204
+ if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13205
13205
  } else {
13206
13206
  let rotateIndex = $(videoLi[index]).find('button[name=rotateVideo]').attr('rotate-index');
13207
13207
  setTimeout(() => {
@@ -13235,7 +13235,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13235
13235
 
13236
13236
  if (!tel && item.id) {
13237
13237
  videoLi[index].querySelector('video').style = '';
13238
- videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13238
+ if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13239
13239
  } else {
13240
13240
  let rotateIndex = $(videoLi[index]).find('button[name=rotateVideo]').attr('rotate-index');
13241
13241
  setTimeout(() => {
@@ -13548,8 +13548,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13548
13548
  let tel = item.video;
13549
13549
 
13550
13550
  if (!tel && item.id) {
13551
- videoLi[index].querySelector('video').style = '';
13552
- if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13551
+ if (videoLi[index]) {
13552
+ videoLi[index].querySelector('video').style = '';
13553
+ if (videoLi[index].querySelector('.rotate-btn')) videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0);
13554
+ }
13553
13555
  }
13554
13556
  });
13555
13557
  } //设置旋转视频的样式
@@ -14118,6 +14120,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14118
14120
  },
14119
14121
 
14120
14122
  videoRotateSize(li, rotateIndex) {
14123
+ if (!li) return;
14121
14124
  let video = li.querySelector('video');
14122
14125
  let videoWidth = video.videoWidth;
14123
14126
  let videoHeight = video.videoHeight;
@@ -14725,8 +14728,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14725
14728
 
14726
14729
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14727
14730
  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>';
14731
+ // checkUserMediaAvailable() &&
14728
14732
 
14729
- 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>');
14733
+ 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>';
14730
14734
  videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
14731
14735
  }
14732
14736
 
@@ -15608,7 +15612,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15608
15612
  this.packetsLostSum = 0;
15609
15613
  this.packetsReceivedSum = 0; //清除显示的视频信息
15610
15614
 
15611
- document.getElementById('info-' + (Number(this.index) + Number(1))).innerHTML = ''; //隐藏视频信息
15615
+ if (document.getElementById('info-' + (Number(this.index) + Number(1)))) document.getElementById('info-' + (Number(this.index) + Number(1))).innerHTML = ''; //隐藏视频信息
15612
15616
 
15613
15617
  this.tagBox.parent().find('.info').hide(); //隐藏音频喇叭
15614
15618
 
Binary file