ucservice 1.8.1 → 1.8.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.
@@ -14310,6 +14310,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14310
14310
  $(this).toggleClass("bggray"); //jquery方式阻止默认事件 & 冒泡事件
14311
14311
 
14312
14312
  return false;
14313
+ });
14314
+ videoFlagObj.find('button[name=screenVideo]').click(function () {
14315
+ let isFull = $(this).hasClass('fullscreen-btn');
14316
+
14317
+ if (isFull) {
14318
+ $(this).attr('class', 'autoscreen-btn');
14319
+ $(this).attr('title', '退出全屏');
14320
+ } else {
14321
+ $(this).attr('class', 'fullscreen-btn');
14322
+ $(this).attr('title', '全屏');
14323
+ } //jquery方式阻止默认事件 & 冒泡事件
14324
+ // return false;
14325
+
14313
14326
  }); //接收音频事件
14314
14327
 
14315
14328
  videoFlagObj.find("button[name='recvAudio']").click(function () {
@@ -14781,7 +14794,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14781
14794
  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 info-self info-top" id="info-self-' + 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>';
14782
14795
  // checkUserMediaAvailable() &&
14783
14796
 
14784
- videoHtml += '<button type="button" class="scale-btn bggray hide" name="scaleVideo" title="视频画面铺满"></button><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>';
14797
+ videoHtml += '<button type="button" class="fullscreen-btn hide" name="screenVideo" title="全屏"></button><button type="button" class="scale-btn bggray hide" name="scaleVideo" title="视频画面铺满"></button><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>';
14785
14798
  videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
14786
14799
  }
14787
14800
 
@@ -15579,6 +15592,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
15579
15592
  self.tagBox.parent().find('.unrecv-audio-btn').hide();
15580
15593
  }
15581
15594
 
15595
+ self.tagBox.parent().find('button[name=screenVideo]').attr('class', 'fullscreen-btn');
15596
+ self.tagBox.parent().find('button[name=screenVideo]').attr('title', '全屏');
15582
15597
  self.tagBox.parent().find('.recv-audio-btn').attr("class", "unrecv-audio-btn");
15583
15598
  self.tagBox.parent().find('.send-audio-btn').attr("class", "unsend-audio-btn");
15584
15599
  let width = this.videoWidth;
Binary file