ucservice 1.3.8 → 1.4.1
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 +11 -11
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +11 -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/scooper.video.js +10 -10
package/package.json
CHANGED
package/src/scooper.video.js
CHANGED
|
@@ -1598,7 +1598,7 @@
|
|
|
1598
1598
|
for(let k = 0; k < _li.length; k++){
|
|
1599
1599
|
let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
|
|
1600
1600
|
if(rotateIndex != 0 && rotateIndex != 2)
|
|
1601
|
-
videoRotateSize(_li.eq(k), rotateIndex);
|
|
1601
|
+
me.videoRotateSize(_li.eq(k)[0], rotateIndex);
|
|
1602
1602
|
}
|
|
1603
1603
|
},
|
|
1604
1604
|
|
|
@@ -2108,15 +2108,15 @@
|
|
|
2108
2108
|
video.style.position = 'absolute';
|
|
2109
2109
|
video.style.transform = 'rotate(90deg)';
|
|
2110
2110
|
if(videoWidth / videoHeight > liWidth / liHeight){ //视频横向留白
|
|
2111
|
+
$(video).css('width', 'auto');
|
|
2112
|
+
$(video).css('height', liWidth);
|
|
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 { //视频纵向留白
|
|
2111
2116
|
$(video).css('width', liHeight);
|
|
2112
2117
|
$(video).css('height', 'auto');
|
|
2113
|
-
$(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
|
|
2114
|
-
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
|
|
2115
|
-
}else { //视频纵向留白
|
|
2116
|
-
$(video).css('height', liWidth);
|
|
2117
|
-
$(video).css('width', 'auto');
|
|
2118
|
-
$(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
|
|
2119
|
-
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
|
|
2118
|
+
$(video).css('left', 'calc(' + liWidth + 'px / 2' + ' - ' + liHeight + 'px / 2)');
|
|
2119
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + 'px + ' + liHeight + 'px / 2)');
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
2122
|
},
|
|
@@ -2207,7 +2207,7 @@
|
|
|
2207
2207
|
rotateIndex++
|
|
2208
2208
|
$(this).attr("rotate-index", rotateIndex % 4);
|
|
2209
2209
|
let li = $(this).parent().parent()[0];
|
|
2210
|
-
videoRotateSize(li, rotateIndex)
|
|
2210
|
+
me.videoRotateSize(li, rotateIndex)
|
|
2211
2211
|
})
|
|
2212
2212
|
|
|
2213
2213
|
//接收音频事件
|
|
@@ -2434,7 +2434,7 @@
|
|
|
2434
2434
|
let videoHtml = '<ul class="' + objClass +'" id="video-main-web-rtc" video-flag="'+me._opts.windowsBeginIndex+'">';
|
|
2435
2435
|
let index = me._opts.windowsBeginIndex + 1;
|
|
2436
2436
|
for (let i = index; i < index + me._opts.windowsNum; i++) {
|
|
2437
|
-
videoHtml += '<li class="screen-' + i +'" index="' + (i - 1) +'"><video class="video-box" id="video-' + i +'" autoplay ></video>' +
|
|
2437
|
+
videoHtml += '<li class="screen-' + i +'" index="' + (i - 1) +'" draggable="true"><video class="video-box" id="video-' + i +'" autoplay ></video>' +
|
|
2438
2438
|
'<div class="info hide" id="info-' + i +'"></div>' +
|
|
2439
2439
|
'<div class="operate-btn">';
|
|
2440
2440
|
//videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
|