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.
- package/dist/ucservice.common.js +111 -23
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.css +1 -1
- package/dist/ucservice.umd.js +111 -23
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/index.js +26 -0
- package/package.json +1 -1
- package/src/css/scooper.video.css +14 -14
- package/src/net_url/record_url.js +46 -1
- package/src/scooper.video.js +30 -22
package/dist/ucservice.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.video-main{position:absolute;top:0;left:-25px;right:-12px;bottom:-18px}.video-main-full{position:absolute;top:1px;left:1px;right:1px;bottom:1px}.video-main-full>li,.video-main>li{border:1px solid #aaa;float:left;position:relative}.video-main-full>li.loading,.video-main>li.loading{background:#000}.video-main-full>li:hover,.video-main>li:hover{border:1px solid #ffb951}.video-main-full>li.sel,.video-main>li.sel{border:1px solid #ef8601}.video-main-full.mode-1>li,.video-main.mode-1>li{width:98.5%;height:98.5%;list-style:none}.video-main-full.mode-1>li .info,.video-main.mode-1>li .info{font-size:20px;bottom:40px}.video-main.mode-4>li{width:49%;height:49%;list-style:none}.video-main.mode-4>li .info{font-size:18px;bottom:20px}.video-main.mode-6>li{width:33.33%;height:33.33%}.video-main.mode-6>li .info{font-size:14px;bottom:13px}.video-main.mode-6 .screen-1{width:66.66%;height:66.65%}.video-main.mode-6 .screen-1 .info{font-size:18px;bottom:30px}.video-main.mode-9>li{width:32.5%;height:32.5%;list-style:none}.video-main.mode-9>li .info{font-size:12px;bottom:14px}.video-main.mode-16>li{width:24.5%;height:24.5%;list-style:none}.video-main.mode-16>li .info{font-size:8px;bottom:10px}.video-box{-o-object-fit:fill;object-fit:fill;display:none;width:100%;height:100%}.stream-loading{width:200px;height:30px;line-height:30px;position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-100px;color:#fff;font-size:16px;padding-left:30px}.info{color:#fff;left:10px;width:67%}.info,.operate-btn{position:absolute;float:left;z-index:1}.operate-btn{width:
|
|
1
|
+
.video-main{position:absolute;top:0;left:-25px;right:-12px;bottom:-18px}.video-main-full{position:absolute;top:1px;left:1px;right:1px;bottom:1px}.video-main-full>li,.video-main>li{border:1px solid #aaa;float:left;position:relative}.video-main-full>li.loading,.video-main>li.loading{background:#000}.video-main-full>li:hover,.video-main>li:hover{border:1px solid #ffb951}.video-main-full>li.sel,.video-main>li.sel{border:1px solid #ef8601}.video-main-full.mode-1>li,.video-main.mode-1>li{width:98.5%;height:98.5%;list-style:none}.video-main-full.mode-1>li .info,.video-main.mode-1>li .info{font-size:20px;bottom:40px}.video-main.mode-4>li{width:49%;height:49%;list-style:none}.video-main.mode-4>li .info{font-size:18px;bottom:20px}.video-main.mode-6>li{width:33.33%;height:33.33%}.video-main.mode-6>li .info{font-size:14px;bottom:13px}.video-main.mode-6 .screen-1{width:66.66%;height:66.65%}.video-main.mode-6 .screen-1 .info{font-size:18px;bottom:30px}.video-main.mode-9>li{width:32.5%;height:32.5%;list-style:none}.video-main.mode-9>li .info{font-size:12px;bottom:14px}.video-main.mode-16>li{width:24.5%;height:24.5%;list-style:none}.video-main.mode-16>li .info{font-size:8px;bottom:10px}.video-box{-o-object-fit:fill;object-fit:fill;display:none;width:100%;height:100%}.stream-loading{width:200px;height:30px;line-height:30px;position:absolute;top:50%;left:50%;margin-top:-15px;margin-left:-100px;color:#fff;font-size:16px;padding-left:30px}.info{color:#fff;left:10px;width:67%}.info,.operate-btn{position:absolute;float:left;z-index:1}.operate-btn{width:1.5rem;height:1.5rem;right:1px;bottom:2px;cursor:pointer}.send-audio-btn,.unsend-audio-btn{bottom:-8px;right:70px;width:3rem;height:3rem}.rotate-btn,.send-audio-btn,.unsend-audio-btn{position:absolute;border:0;float:left;background-size:100% 100%;background-color:transparent}.rotate-btn{bottom:1px;right:76px;width:1.75rem;height:1.75rem}.recv-audio-btn,.unrecv-audio-btn{bottom:-8px;right:30px;width:3rem;height:3rem}.close-btn,.recv-audio-btn,.unrecv-audio-btn{position:absolute;border:0;float:left;background-size:100% 100%;background-color:transparent}.close-btn{bottom:5px;right:5px;width:1.25rem;height:1.25rem}.operation{position:absolute;width:100%;height:12%;bottom:0;background:rgba(0,0,0,.3);color:#fff}.hide{display:none}
|
package/dist/ucservice.umd.js
CHANGED
|
@@ -13960,56 +13960,64 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13960
13960
|
if (rotateIndex == 0) {
|
|
13961
13961
|
//0
|
|
13962
13962
|
$(video).attr('class', 'video-box');
|
|
13963
|
-
$(video).css('height', '');
|
|
13963
|
+
$(video).css('height', 'auto');
|
|
13964
13964
|
$(video).css('width', 'auto');
|
|
13965
|
-
video.
|
|
13966
|
-
video.
|
|
13967
|
-
|
|
13968
|
-
$(video).css('
|
|
13965
|
+
$(video).css('max-height', '100%');
|
|
13966
|
+
$(video).css('max-width', '100%');
|
|
13967
|
+
video.style.position = 'absolute';
|
|
13968
|
+
$(video).css('left', '50%');
|
|
13969
|
+
$(video).css('top', '50%');
|
|
13970
|
+
video.style.transform = 'translate(-50%, -50%)';
|
|
13969
13971
|
} else if (rotateIndex == 3) {
|
|
13970
13972
|
//3
|
|
13971
13973
|
$(video).attr('class', 'video-box');
|
|
13972
13974
|
video.style.position = 'absolute';
|
|
13973
13975
|
video.style.transform = 'rotate(270deg)';
|
|
13976
|
+
$(video).css('max-height', 'none');
|
|
13977
|
+
$(video).css('max-width', 'none');
|
|
13974
13978
|
|
|
13975
|
-
if (
|
|
13979
|
+
if (videoHeight * liHeight / videoWidth < liWidth) {
|
|
13976
13980
|
//视频横向留白
|
|
13977
|
-
$(video).css('width',
|
|
13978
|
-
$(video).css('height',
|
|
13981
|
+
$(video).css('width', liHeight);
|
|
13982
|
+
$(video).css('height', 'auto');
|
|
13979
13983
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
13980
13984
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
13981
13985
|
} else {
|
|
13982
13986
|
//视频纵向留白
|
|
13983
|
-
$(video).css('width',
|
|
13984
|
-
$(video).css('height',
|
|
13987
|
+
$(video).css('width', 'auto');
|
|
13988
|
+
$(video).css('height', liWidth);
|
|
13985
13989
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
13986
13990
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
13987
13991
|
}
|
|
13988
13992
|
} else if (rotateIndex == 2) {
|
|
13989
13993
|
//2
|
|
13990
13994
|
$(video).attr('class', 'video-box');
|
|
13991
|
-
$(video).css('height', '');
|
|
13995
|
+
$(video).css('height', 'auto');
|
|
13992
13996
|
$(video).css('width', 'auto');
|
|
13993
|
-
video.
|
|
13994
|
-
video.
|
|
13995
|
-
|
|
13996
|
-
$(video).css('
|
|
13997
|
+
$(video).css('max-height', '100%');
|
|
13998
|
+
$(video).css('max-width', '100%');
|
|
13999
|
+
video.style.position = 'absolute';
|
|
14000
|
+
$(video).css('left', '50%');
|
|
14001
|
+
$(video).css('top', '50%');
|
|
14002
|
+
video.style.transform = 'translate(-50%, -50%) rotate(180deg)';
|
|
13997
14003
|
} else if (rotateIndex == 1) {
|
|
13998
14004
|
//1
|
|
13999
14005
|
$(video).attr('class', 'video-box');
|
|
14000
14006
|
video.style.position = 'absolute';
|
|
14001
14007
|
video.style.transform = 'rotate(90deg)';
|
|
14008
|
+
$(video).css('max-height', 'none');
|
|
14009
|
+
$(video).css('max-width', 'none');
|
|
14002
14010
|
|
|
14003
|
-
if (
|
|
14011
|
+
if (videoHeight * liHeight / videoWidth < liWidth) {
|
|
14004
14012
|
//视频横向留白
|
|
14005
|
-
$(video).css('width',
|
|
14006
|
-
$(video).css('height',
|
|
14007
|
-
$(video).css('left', 'calc(' +
|
|
14013
|
+
$(video).css('width', liHeight);
|
|
14014
|
+
$(video).css('height', 'auto');
|
|
14015
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14008
14016
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
14009
14017
|
} else {
|
|
14010
14018
|
//视频纵向留白
|
|
14011
|
-
$(video).css('width',
|
|
14012
|
-
$(video).css('height',
|
|
14019
|
+
$(video).css('width', 'auto');
|
|
14020
|
+
$(video).css('height', liWidth);
|
|
14013
14021
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
14014
14022
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
14015
14023
|
}
|
|
@@ -14337,7 +14345,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14337
14345
|
for (let i = index; i < index + me._opts.windowsNum; i++) {
|
|
14338
14346
|
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>';
|
|
14339
14347
|
|
|
14340
|
-
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>');
|
|
14348
|
+
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>');
|
|
14341
14349
|
videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
|
|
14342
14350
|
}
|
|
14343
14351
|
|
|
@@ -29777,12 +29785,64 @@ let record = {
|
|
|
29777
29785
|
}
|
|
29778
29786
|
}
|
|
29779
29787
|
},
|
|
29788
|
+
queryCallRecordNet: {
|
|
29789
|
+
//获取通话录音录像
|
|
29790
|
+
url: '/scooper-record/data/call/queryCallRecords',
|
|
29791
|
+
method: 'GET',
|
|
29792
|
+
requestParam: {
|
|
29793
|
+
token: '',
|
|
29794
|
+
timeMin: '',
|
|
29795
|
+
timeMax: '',
|
|
29796
|
+
pageNumber: 1,
|
|
29797
|
+
fileType: 0,
|
|
29798
|
+
//0:录音,1:录像
|
|
29799
|
+
pageSize: 10
|
|
29800
|
+
},
|
|
29801
|
+
responseParam: {
|
|
29802
|
+
code: '',
|
|
29803
|
+
//返回结果状态码
|
|
29804
|
+
message: '',
|
|
29805
|
+
systemTime: '',
|
|
29806
|
+
//yyyy-MM-dd HH:mm:ss
|
|
29807
|
+
data: {
|
|
29808
|
+
pageNumber: 1,
|
|
29809
|
+
pageSize: 10,
|
|
29810
|
+
total: 1884,
|
|
29811
|
+
list: []
|
|
29812
|
+
}
|
|
29813
|
+
}
|
|
29814
|
+
},
|
|
29815
|
+
queryMeetingRecordNet: {
|
|
29816
|
+
//获取会议录音录像
|
|
29817
|
+
url: '/scooper-record/data/meeting/queryMeetingRecords',
|
|
29818
|
+
method: 'GET',
|
|
29819
|
+
requestParam: {
|
|
29820
|
+
token: '',
|
|
29821
|
+
timeMin: '',
|
|
29822
|
+
timeMax: '',
|
|
29823
|
+
pageNumber: 1,
|
|
29824
|
+
pageSize: 10
|
|
29825
|
+
},
|
|
29826
|
+
responseParam: {
|
|
29827
|
+
code: '',
|
|
29828
|
+
//返回结果状态码
|
|
29829
|
+
message: '',
|
|
29830
|
+
systemTime: '',
|
|
29831
|
+
//yyyy-MM-dd HH:mm:ss
|
|
29832
|
+
data: {
|
|
29833
|
+
pageNumber: 1,
|
|
29834
|
+
pageSize: 10,
|
|
29835
|
+
total: 1884,
|
|
29836
|
+
list: []
|
|
29837
|
+
}
|
|
29838
|
+
}
|
|
29839
|
+
},
|
|
29780
29840
|
queryVideoNet: {
|
|
29781
29841
|
//分页查询录像 (通话录像/会议录像)
|
|
29782
29842
|
|
|
29783
29843
|
/***录像查询接口
|
|
29784
29844
|
**/
|
|
29785
|
-
url: '/scooper-record/data/
|
|
29845
|
+
url: '/scooper-record/data/video/queryVideo',
|
|
29786
29846
|
requestParam: {
|
|
29787
29847
|
token: '',
|
|
29788
29848
|
recType: '',
|
|
@@ -31730,6 +31790,34 @@ const recordOp = sip => {
|
|
|
31730
31790
|
}, '', net.method);
|
|
31731
31791
|
});
|
|
31732
31792
|
},
|
|
31793
|
+
callRecordListPage: function (param) {
|
|
31794
|
+
let net = record_url.queryCallRecordNet;
|
|
31795
|
+
return new Promise((resolve, reject) => {
|
|
31796
|
+
loadJson(server_ + net.url, { ...param
|
|
31797
|
+
}, function (ret) {
|
|
31798
|
+
if (ret.code == 0) {
|
|
31799
|
+
resolve(ret);
|
|
31800
|
+
} else {
|
|
31801
|
+
console.log("分页查询通话录音录像表失败", ret.code);
|
|
31802
|
+
reject(ret.code);
|
|
31803
|
+
}
|
|
31804
|
+
}, '', net.method);
|
|
31805
|
+
});
|
|
31806
|
+
},
|
|
31807
|
+
meetRecordListPage: function (param) {
|
|
31808
|
+
let net = record_url.queryMeetingRecordNet;
|
|
31809
|
+
return new Promise((resolve, reject) => {
|
|
31810
|
+
loadJson(server_ + net.url, { ...param
|
|
31811
|
+
}, function (ret) {
|
|
31812
|
+
if (ret.code == 0) {
|
|
31813
|
+
resolve(ret);
|
|
31814
|
+
} else {
|
|
31815
|
+
console.log("分页查询会议录音录像表失败", ret.code);
|
|
31816
|
+
reject(ret.code);
|
|
31817
|
+
}
|
|
31818
|
+
}, '', net.method);
|
|
31819
|
+
});
|
|
31820
|
+
},
|
|
31733
31821
|
notifyPageList: function (param) {
|
|
31734
31822
|
let net = record_url.queryRecordNotifyNet;
|
|
31735
31823
|
return new Promise((resolve, reject) => {
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|