ucservice 1.5.7 → 1.6.0
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 +8 -5
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +8 -5
- 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 +11 -5
package/package.json
CHANGED
package/src/scooper.video.js
CHANGED
|
@@ -1337,7 +1337,8 @@
|
|
|
1337
1337
|
let tel = item.video
|
|
1338
1338
|
if (!tel&&item.id) {
|
|
1339
1339
|
videoLi[index].querySelector('video').style = ''
|
|
1340
|
-
videoLi[index].querySelector('.rotate-btn')
|
|
1340
|
+
if(videoLi[index].querySelector('.rotate-btn'))
|
|
1341
|
+
videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
|
|
1341
1342
|
}else{
|
|
1342
1343
|
let rotateIndex = $(videoLi[index]).find('button[name=rotateVideo]').attr('rotate-index')
|
|
1343
1344
|
setTimeout(() => {
|
|
@@ -1366,7 +1367,8 @@
|
|
|
1366
1367
|
let tel = item.video
|
|
1367
1368
|
if (!tel&&item.id) {
|
|
1368
1369
|
videoLi[index].querySelector('video').style = ''
|
|
1369
|
-
videoLi[index].querySelector('.rotate-btn')
|
|
1370
|
+
if(videoLi[index].querySelector('.rotate-btn'))
|
|
1371
|
+
videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
|
|
1370
1372
|
}else{
|
|
1371
1373
|
let rotateIndex = $(videoLi[index]).find('button[name=rotateVideo]').attr('rotate-index')
|
|
1372
1374
|
setTimeout(() => {
|
|
@@ -1665,8 +1667,11 @@
|
|
|
1665
1667
|
me.VIDEO_DATA.forEach((item, index) => {
|
|
1666
1668
|
let tel = item.video
|
|
1667
1669
|
if (!tel&&item.id) {
|
|
1668
|
-
videoLi[index]
|
|
1669
|
-
|
|
1670
|
+
if(videoLi[index]){
|
|
1671
|
+
videoLi[index].querySelector('video').style = ''
|
|
1672
|
+
if(videoLi[index].querySelector('.rotate-btn'))
|
|
1673
|
+
videoLi[index].querySelector('.rotate-btn').setAttribute('rotate-index', 0)
|
|
1674
|
+
}
|
|
1670
1675
|
}
|
|
1671
1676
|
})
|
|
1672
1677
|
}
|
|
@@ -2774,7 +2779,8 @@
|
|
|
2774
2779
|
'<div class="hide frame-decoded" id="frame-decoded-' + i + '"style="position:absolute;float:left;color:#fff;width:67%;z-index:1;top:135px;left:180px">网络信号不佳</div>' +
|
|
2775
2780
|
'<div class="operate-btn">';
|
|
2776
2781
|
//videoHtml +='<button type="button" class="unlock-video-btn hide" name="lockVideo"></button>';
|
|
2777
|
-
checkUserMediaAvailable() &&
|
|
2782
|
+
// checkUserMediaAvailable() &&
|
|
2783
|
+
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>';
|
|
2778
2784
|
videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' +
|
|
2779
2785
|
'<button type="button" class="close-btn hide" name="closeVideo"></button>' +
|
|
2780
2786
|
'</div>' +
|