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/index.js
CHANGED
|
@@ -1113,6 +1113,32 @@ export const recordOp = (sip) => {
|
|
|
1113
1113
|
}, '', net.method);
|
|
1114
1114
|
});
|
|
1115
1115
|
},
|
|
1116
|
+
callRecordListPage: function(param){
|
|
1117
|
+
let net = record.queryCallRecordNet;
|
|
1118
|
+
return new Promise((resolve, reject) => {
|
|
1119
|
+
loadJson(server_+net.url, { ...param }, function(ret){
|
|
1120
|
+
if(ret.code == 0) {
|
|
1121
|
+
resolve(ret);
|
|
1122
|
+
}else{
|
|
1123
|
+
console.log("分页查询通话录音录像表失败", ret.code);
|
|
1124
|
+
reject(ret.code);
|
|
1125
|
+
}
|
|
1126
|
+
}, '', net.method);
|
|
1127
|
+
});
|
|
1128
|
+
},
|
|
1129
|
+
meetRecordListPage: function(param){
|
|
1130
|
+
let net = record.queryMeetingRecordNet;
|
|
1131
|
+
return new Promise((resolve, reject) => {
|
|
1132
|
+
loadJson(server_+net.url, { ...param }, function(ret){
|
|
1133
|
+
if(ret.code == 0) {
|
|
1134
|
+
resolve(ret);
|
|
1135
|
+
}else{
|
|
1136
|
+
console.log("分页查询会议录音录像表失败", ret.code);
|
|
1137
|
+
reject(ret.code);
|
|
1138
|
+
}
|
|
1139
|
+
}, '', net.method);
|
|
1140
|
+
});
|
|
1141
|
+
},
|
|
1116
1142
|
notifyPageList: function(param){
|
|
1117
1143
|
let net = record.queryRecordNotifyNet;
|
|
1118
1144
|
return new Promise((resolve, reject) => {
|
package/package.json
CHANGED
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
|
|
116
116
|
.operate-btn{
|
|
117
117
|
position: absolute;
|
|
118
|
-
width:
|
|
119
|
-
height:
|
|
118
|
+
width: 1.5rem;
|
|
119
|
+
height: 1.5rem;
|
|
120
120
|
float: left;
|
|
121
121
|
right: 1px;
|
|
122
122
|
bottom: 2px;
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
bottom: -8px;
|
|
130
130
|
right: 70px;
|
|
131
131
|
border: 0;
|
|
132
|
-
width:
|
|
133
|
-
height:
|
|
132
|
+
width: 3rem;
|
|
133
|
+
height: 3rem;
|
|
134
134
|
float: left;
|
|
135
135
|
/* background:url("~@/img/yy.png"); */
|
|
136
136
|
background-size: 100% 100%;
|
|
@@ -142,8 +142,8 @@
|
|
|
142
142
|
bottom: -8px;
|
|
143
143
|
right: 70px;
|
|
144
144
|
border: 0;
|
|
145
|
-
width:
|
|
146
|
-
height:
|
|
145
|
+
width: 3rem;
|
|
146
|
+
height: 3rem;
|
|
147
147
|
float: left;
|
|
148
148
|
/* background-image: url("~@/img/yy_gb.png"); */
|
|
149
149
|
background-size: 100% 100%;
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
bottom: 1px;
|
|
155
155
|
right: 76px;
|
|
156
156
|
border: 0;
|
|
157
|
-
width:
|
|
158
|
-
height:
|
|
157
|
+
width: 1.75rem;
|
|
158
|
+
height: 1.75rem;
|
|
159
159
|
float: left;
|
|
160
160
|
/* background-image: url("~@/img/yy_gb.png"); */
|
|
161
161
|
background-size: 100% 100%;
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
bottom: -8px;
|
|
167
167
|
right: 30px;
|
|
168
168
|
border: 0;
|
|
169
|
-
width:
|
|
170
|
-
height:
|
|
169
|
+
width: 3rem;
|
|
170
|
+
height: 3rem;
|
|
171
171
|
float: left;
|
|
172
172
|
/* background:url("~@/img/hm_shengyin_sel.png"); */
|
|
173
173
|
background-size: 100% 100%;
|
|
@@ -179,8 +179,8 @@
|
|
|
179
179
|
bottom: -8px;
|
|
180
180
|
right: 30px;
|
|
181
181
|
border: 0;
|
|
182
|
-
width:
|
|
183
|
-
height:
|
|
182
|
+
width: 3rem;
|
|
183
|
+
height: 3rem;
|
|
184
184
|
float: left;
|
|
185
185
|
/* background-image: url("~@/img/hm_jingyin_sel.png"); */
|
|
186
186
|
background-size: 100% 100%;
|
|
@@ -192,8 +192,8 @@
|
|
|
192
192
|
bottom: 5px;
|
|
193
193
|
right: 5px;
|
|
194
194
|
border: 0;
|
|
195
|
-
width:
|
|
196
|
-
height:
|
|
195
|
+
width: 1.25rem;
|
|
196
|
+
height: 1.25rem;
|
|
197
197
|
float: left;
|
|
198
198
|
/* background-image: url("~@/img/close.png"); */
|
|
199
199
|
background-size: 100% 100%;
|
|
@@ -39,10 +39,55 @@ let record = {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
|
|
42
|
+
queryCallRecordNet: { //获取通话录音录像
|
|
43
|
+
url: '/scooper-record/data/call/queryCallRecords',
|
|
44
|
+
method: 'GET',
|
|
45
|
+
requestParam: {
|
|
46
|
+
token: '',
|
|
47
|
+
timeMin: '',
|
|
48
|
+
timeMax: '',
|
|
49
|
+
pageNumber: 1,
|
|
50
|
+
fileType: 0, //0:录音,1:录像
|
|
51
|
+
pageSize: 10
|
|
52
|
+
},
|
|
53
|
+
responseParam: {
|
|
54
|
+
code: '', //返回结果状态码
|
|
55
|
+
message: '',
|
|
56
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
57
|
+
data: {
|
|
58
|
+
pageNumber: 1,
|
|
59
|
+
pageSize: 10,
|
|
60
|
+
total: 1884,
|
|
61
|
+
list: []
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
queryMeetingRecordNet: { //获取会议录音录像
|
|
66
|
+
url: '/scooper-record/data/meeting/queryMeetingRecords',
|
|
67
|
+
method: 'GET',
|
|
68
|
+
requestParam: {
|
|
69
|
+
token: '',
|
|
70
|
+
timeMin: '',
|
|
71
|
+
timeMax: '',
|
|
72
|
+
pageNumber: 1,
|
|
73
|
+
pageSize: 10
|
|
74
|
+
},
|
|
75
|
+
responseParam: {
|
|
76
|
+
code: '', //返回结果状态码
|
|
77
|
+
message: '',
|
|
78
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
79
|
+
data: {
|
|
80
|
+
pageNumber: 1,
|
|
81
|
+
pageSize: 10,
|
|
82
|
+
total: 1884,
|
|
83
|
+
list: []
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
42
87
|
queryVideoNet: { //分页查询录像 (通话录像/会议录像)
|
|
43
88
|
/***录像查询接口
|
|
44
89
|
**/
|
|
45
|
-
url: '/scooper-record/data/
|
|
90
|
+
url: '/scooper-record/data/video/queryVideo',
|
|
46
91
|
requestParam: {
|
|
47
92
|
token: '',
|
|
48
93
|
recType: '', //录像类型 1:通话录像(调度&平台)2:会议录像
|
package/src/scooper.video.js
CHANGED
|
@@ -2074,48 +2074,56 @@
|
|
|
2074
2074
|
let liHeight = li.offsetHeight;
|
|
2075
2075
|
if(rotateIndex == 0){ //0
|
|
2076
2076
|
$(video).attr('class', 'video-box');
|
|
2077
|
-
$(video).css('height', '');
|
|
2077
|
+
$(video).css('height', 'auto');
|
|
2078
2078
|
$(video).css('width', 'auto');
|
|
2079
|
-
video.
|
|
2080
|
-
video.
|
|
2081
|
-
|
|
2082
|
-
$(video).css('
|
|
2079
|
+
$(video).css('max-height', '100%');
|
|
2080
|
+
$(video).css('max-width', '100%');
|
|
2081
|
+
video.style.position = 'absolute';
|
|
2082
|
+
$(video).css('left', '50%');
|
|
2083
|
+
$(video).css('top', '50%');
|
|
2084
|
+
video.style.transform = 'translate(-50%, -50%)';
|
|
2083
2085
|
}else if(rotateIndex == 3){ //3
|
|
2084
2086
|
$(video).attr('class', 'video-box');
|
|
2085
2087
|
video.style.position = 'absolute';
|
|
2086
2088
|
video.style.transform = 'rotate(270deg)';
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2089
|
+
$(video).css('max-height', 'none');
|
|
2090
|
+
$(video).css('max-width', 'none');
|
|
2091
|
+
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2092
|
+
$(video).css('width', liHeight);
|
|
2093
|
+
$(video).css('height', 'auto');
|
|
2090
2094
|
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2091
2095
|
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2092
2096
|
}else { //视频纵向留白
|
|
2093
|
-
$(video).css('width',
|
|
2094
|
-
$(video).css('height',
|
|
2097
|
+
$(video).css('width', 'auto');
|
|
2098
|
+
$(video).css('height', liWidth);
|
|
2095
2099
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2096
2100
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
2097
2101
|
}
|
|
2098
2102
|
}else if(rotateIndex == 2){ //2
|
|
2099
2103
|
$(video).attr('class', 'video-box');
|
|
2100
|
-
$(video).css('height', '');
|
|
2104
|
+
$(video).css('height', 'auto');
|
|
2101
2105
|
$(video).css('width', 'auto');
|
|
2102
|
-
video.
|
|
2103
|
-
video.
|
|
2104
|
-
|
|
2105
|
-
$(video).css('
|
|
2106
|
+
$(video).css('max-height', '100%');
|
|
2107
|
+
$(video).css('max-width', '100%');
|
|
2108
|
+
video.style.position = 'absolute';
|
|
2109
|
+
$(video).css('left', '50%');
|
|
2110
|
+
$(video).css('top', '50%');
|
|
2111
|
+
video.style.transform = 'translate(-50%, -50%) rotate(180deg)';
|
|
2106
2112
|
}else if(rotateIndex == 1){ //1
|
|
2107
2113
|
$(video).attr('class', 'video-box');
|
|
2108
2114
|
video.style.position = 'absolute';
|
|
2109
2115
|
video.style.transform = 'rotate(90deg)';
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
$(video).css('left', 'calc(' + liHeight + 'px / 2' + ' - ' + liWidth + 'px / 2)');
|
|
2114
|
-
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2115
|
-
}else { //视频纵向留白
|
|
2116
|
+
$(video).css('max-height', 'none');
|
|
2117
|
+
$(video).css('max-width', 'none');
|
|
2118
|
+
if(videoHeight * liHeight / videoWidth < liWidth){ //视频横向留白
|
|
2116
2119
|
$(video).css('width', liHeight);
|
|
2117
2120
|
$(video).css('height', 'auto');
|
|
2118
2121
|
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2122
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + 'px + ' + liWidth + 'px / 2)');
|
|
2123
|
+
}else { //视频纵向留白
|
|
2124
|
+
$(video).css('width', 'auto');
|
|
2125
|
+
$(video).css('height', liWidth);
|
|
2126
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2119
2127
|
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
2120
2128
|
}
|
|
2121
2129
|
}
|
|
@@ -2439,7 +2447,7 @@
|
|
|
2439
2447
|
'<div class="info hide" id="info-' + i +'"></div>' +
|
|
2440
2448
|
'<div class="operate-btn">';
|
|
2441
2449
|
//videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
|
|
2442
|
-
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>');
|
|
2450
|
+
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>');
|
|
2443
2451
|
videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' +
|
|
2444
2452
|
'<button type="button" class="close-btn hide" name="closeVideo"></button>' +
|
|
2445
2453
|
'</div>' +
|