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.
@@ -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
- 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
  } //设置旋转视频的样式
@@ -14734,8 +14736,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14734
14736
 
14735
14737
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14736
14738
  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>';
14739
+ // checkUserMediaAvailable() &&
14737
14740
 
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>');
14741
+ 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
14742
  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
14743
  }
14741
14744
 
Binary file