ucservice 1.5.7 → 1.6.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.
@@ -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
- 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
  } //设置旋转视频的样式
@@ -14725,8 +14727,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14725
14727
 
14726
14728
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14727
14729
  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>';
14730
+ // checkUserMediaAvailable() &&
14728
14731
 
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>');
14732
+ 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
14733
  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
14734
  }
14732
14735
 
Binary file