ucservice 1.4.3 → 1.4.6

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.
@@ -13951,56 +13951,64 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
13951
13951
  if (rotateIndex == 0) {
13952
13952
  //0
13953
13953
  $(video).attr('class', 'video-box');
13954
- $(video).css('height', '');
13954
+ $(video).css('height', 'auto');
13955
13955
  $(video).css('width', 'auto');
13956
- video.style.position = 'static';
13957
- video.style.transform = 'none';
13958
- $(video).css('left', '');
13959
- $(video).css('top', '');
13956
+ $(video).css('max-height', '100%');
13957
+ $(video).css('max-width', '100%');
13958
+ video.style.position = 'absolute';
13959
+ $(video).css('left', '50%');
13960
+ $(video).css('top', '50%');
13961
+ video.style.transform = 'translate(-50%, -50%)';
13960
13962
  } else if (rotateIndex == 3) {
13961
13963
  //3
13962
13964
  $(video).attr('class', 'video-box');
13963
13965
  video.style.position = 'absolute';
13964
13966
  video.style.transform = 'rotate(270deg)';
13967
+ $(video).css('max-height', 'none');
13968
+ $(video).css('max-width', 'none');
13965
13969
 
13966
- if (videoWidth / videoHeight > liWidth / liHeight) {
13970
+ if (videoHeight * liHeight / videoWidth < liWidth) {
13967
13971
  //视频横向留白
13968
- $(video).css('width', 'auto');
13969
- $(video).css('height', liWidth);
13972
+ $(video).css('width', liHeight);
13973
+ $(video).css('height', 'auto');
13970
13974
  $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
13971
13975
  $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
13972
13976
  } else {
13973
13977
  //视频纵向留白
13974
- $(video).css('width', liHeight);
13975
- $(video).css('height', 'auto');
13978
+ $(video).css('width', 'auto');
13979
+ $(video).css('height', liWidth);
13976
13980
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13977
13981
  $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
13978
13982
  }
13979
13983
  } else if (rotateIndex == 2) {
13980
13984
  //2
13981
13985
  $(video).attr('class', 'video-box');
13982
- $(video).css('height', '');
13986
+ $(video).css('height', 'auto');
13983
13987
  $(video).css('width', 'auto');
13984
- video.style.position = 'static';
13985
- video.style.transform = 'rotate(180deg)';
13986
- $(video).css('left', '');
13987
- $(video).css('top', '');
13988
+ $(video).css('max-height', '100%');
13989
+ $(video).css('max-width', '100%');
13990
+ video.style.position = 'absolute';
13991
+ $(video).css('left', '50%');
13992
+ $(video).css('top', '50%');
13993
+ video.style.transform = 'translate(-50%, -50%) rotate(180deg)';
13988
13994
  } else if (rotateIndex == 1) {
13989
13995
  //1
13990
13996
  $(video).attr('class', 'video-box');
13991
13997
  video.style.position = 'absolute';
13992
13998
  video.style.transform = 'rotate(90deg)';
13999
+ $(video).css('max-height', 'none');
14000
+ $(video).css('max-width', 'none');
13993
14001
 
13994
- if (videoWidth / videoHeight > liWidth / liHeight) {
14002
+ if (videoHeight * liHeight / videoWidth < liWidth) {
13995
14003
  //视频横向留白
13996
- $(video).css('width', 'auto');
13997
- $(video).css('height', liWidth);
13998
- $(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
14004
+ $(video).css('width', liHeight);
14005
+ $(video).css('height', 'auto');
14006
+ $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
13999
14007
  $(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
14000
14008
  } else {
14001
14009
  //视频纵向留白
14002
- $(video).css('width', liHeight);
14003
- $(video).css('height', 'auto');
14010
+ $(video).css('width', 'auto');
14011
+ $(video).css('height', liWidth);
14004
14012
  $(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
14005
14013
  $(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
14006
14014
  }
@@ -14328,7 +14336,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14328
14336
  for (let i = index; i < index + me._opts.windowsNum; i++) {
14329
14337
  videoHtml += '<li class="screen-' + i + '" index="' + (i - 1) + '" draggable="true"><video class="video-box" id="video-' + i + '" autoplay ></video>' + '<div class="info hide" id="info-' + i + '"></div>' + '<div class="operate-btn">'; //videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
14330
14338
 
14331
- checkUserMediaAvailable() && (videoHtml += '<button type="button" class="rotate-btn hide" name="rotateVideo" rotate-index="0"></button><button type="button" class="unsend-audio-btn hide" name="sendAudio"></button>');
14339
+ 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>');
14332
14340
  videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
14333
14341
  }
14334
14342
 
@@ -29768,12 +29776,64 @@ let record = {
29768
29776
  }
29769
29777
  }
29770
29778
  },
29779
+ queryCallRecordNet: {
29780
+ //获取通话录音录像
29781
+ url: '/scooper-record/data/call/queryCallRecords',
29782
+ method: 'GET',
29783
+ requestParam: {
29784
+ token: '',
29785
+ timeMin: '',
29786
+ timeMax: '',
29787
+ pageNumber: 1,
29788
+ fileType: 0,
29789
+ //0:录音,1:录像
29790
+ pageSize: 10
29791
+ },
29792
+ responseParam: {
29793
+ code: '',
29794
+ //返回结果状态码
29795
+ message: '',
29796
+ systemTime: '',
29797
+ //yyyy-MM-dd HH:mm:ss
29798
+ data: {
29799
+ pageNumber: 1,
29800
+ pageSize: 10,
29801
+ total: 1884,
29802
+ list: []
29803
+ }
29804
+ }
29805
+ },
29806
+ queryMeetingRecordNet: {
29807
+ //获取会议录音录像
29808
+ url: '/scooper-record/data/meeting/queryMeetingRecords',
29809
+ method: 'GET',
29810
+ requestParam: {
29811
+ token: '',
29812
+ timeMin: '',
29813
+ timeMax: '',
29814
+ pageNumber: 1,
29815
+ pageSize: 10
29816
+ },
29817
+ responseParam: {
29818
+ code: '',
29819
+ //返回结果状态码
29820
+ message: '',
29821
+ systemTime: '',
29822
+ //yyyy-MM-dd HH:mm:ss
29823
+ data: {
29824
+ pageNumber: 1,
29825
+ pageSize: 10,
29826
+ total: 1884,
29827
+ list: []
29828
+ }
29829
+ }
29830
+ },
29771
29831
  queryVideoNet: {
29772
29832
  //分页查询录像 (通话录像/会议录像)
29773
29833
 
29774
29834
  /***录像查询接口
29775
29835
  **/
29776
- url: '/scooper-record/data/record/queryRecord',
29836
+ url: '/scooper-record/data/video/queryVideo',
29777
29837
  requestParam: {
29778
29838
  token: '',
29779
29839
  recType: '',
@@ -31721,6 +31781,34 @@ const recordOp = sip => {
31721
31781
  }, '', net.method);
31722
31782
  });
31723
31783
  },
31784
+ callRecordListPage: function (param) {
31785
+ let net = record_url.queryCallRecordNet;
31786
+ return new Promise((resolve, reject) => {
31787
+ loadJson(server_ + net.url, { ...param
31788
+ }, function (ret) {
31789
+ if (ret.code == 0) {
31790
+ resolve(ret);
31791
+ } else {
31792
+ console.log("分页查询通话录音录像表失败", ret.code);
31793
+ reject(ret.code);
31794
+ }
31795
+ }, '', net.method);
31796
+ });
31797
+ },
31798
+ meetRecordListPage: function (param) {
31799
+ let net = record_url.queryMeetingRecordNet;
31800
+ return new Promise((resolve, reject) => {
31801
+ loadJson(server_ + net.url, { ...param
31802
+ }, function (ret) {
31803
+ if (ret.code == 0) {
31804
+ resolve(ret);
31805
+ } else {
31806
+ console.log("分页查询会议录音录像表失败", ret.code);
31807
+ reject(ret.code);
31808
+ }
31809
+ }, '', net.method);
31810
+ });
31811
+ },
31724
31812
  notifyPageList: function (param) {
31725
31813
  let net = record_url.queryRecordNotifyNet;
31726
31814
  return new Promise((resolve, reject) => {
Binary file