ucservice 1.4.3 → 1.4.4
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 +19 -11
- 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 +19 -11
- 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/package.json +1 -1
- package/src/css/scooper.video.css +14 -14
- package/src/scooper.video.js +19 -11
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%;
|
package/src/scooper.video.js
CHANGED
|
@@ -2074,16 +2074,20 @@
|
|
|
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)';
|
|
2089
|
+
$(video).css('max-height', '');
|
|
2090
|
+
$(video).css('max-width', '');
|
|
2087
2091
|
if(videoWidth / videoHeight > liWidth / liHeight){ //视频横向留白
|
|
2088
2092
|
$(video).css('width', 'auto');
|
|
2089
2093
|
$(video).css('height', liWidth);
|
|
@@ -2097,16 +2101,20 @@
|
|
|
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)';
|
|
2116
|
+
$(video).css('max-height', '');
|
|
2117
|
+
$(video).css('max-width', '');
|
|
2110
2118
|
if(videoWidth / videoHeight > liWidth / liHeight){ //视频横向留白
|
|
2111
2119
|
$(video).css('width', 'auto');
|
|
2112
2120
|
$(video).css('height', liWidth);
|
|
@@ -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>' +
|