ucservice 1.3.3 → 1.3.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 +150 -5
- 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 +150 -5
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +2 -2
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/index.js +15 -1
- package/package.json +1 -1
- package/src/css/scooper.video.css +12 -0
- package/src/net_url/account_net_url.js +16 -0
- package/src/net_url/location_url.js +2 -1
- package/src/scooper.video.js +112 -10
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:24px;height:24x;right:1px;bottom:2px;cursor:pointer}.send-audio-btn,.unsend-audio-btn{position:absolute;bottom:-8px;right:70px;border:0;width:48px;height:48px;float:left;background-size:100% 100%;background-color:transparent}.recv-audio-btn,.unrecv-audio-btn{bottom:-8px;right:30px;width:48px;height:48px}.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:20px;height:20px}.operation{position:absolute;width:100%;height:12%;bottom:0;background:rgba(0,0,0,.3);color:#fff}.hide{display:none}
|
|
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:24px;height:24x;right:1px;bottom:2px;cursor:pointer}.rotate-btn,.send-audio-btn,.unsend-audio-btn{position:absolute;bottom:-8px;right:70px;border:0;width:48px;height:48px;float:left;background-size:100% 100%;background-color:transparent}.recv-audio-btn,.unrecv-audio-btn{bottom:-8px;right:30px;width:48px;height:48px}.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:20px;height:20px}.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
|
@@ -12464,7 +12464,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
12464
12464
|
windowNums: num
|
|
12465
12465
|
});
|
|
12466
12466
|
me._opts.windows = num;
|
|
12467
|
-
me._opts.extra = extra;
|
|
12467
|
+
me._opts.extra = extra; //设置旋转了的视频样式
|
|
12468
12468
|
},
|
|
12469
12469
|
|
|
12470
12470
|
/**
|
|
@@ -13468,7 +13468,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13468
13468
|
this.dispatch('screenchange', {
|
|
13469
13469
|
windowNums: num,
|
|
13470
13470
|
flag: me._opts.flag
|
|
13471
|
-
});
|
|
13471
|
+
}); //设置旋转视频的样式
|
|
13472
|
+
|
|
13473
|
+
for (let k = 0; k < _li.length(); k++) {
|
|
13474
|
+
let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
|
|
13475
|
+
|
|
13476
|
+
if (rotateIndex != 0 && rotateIndex != 2) videoRotateSize(_li.eq(k), rotateIndex);
|
|
13477
|
+
}
|
|
13472
13478
|
},
|
|
13473
13479
|
|
|
13474
13480
|
/**
|
|
@@ -13936,11 +13942,106 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13936
13942
|
me._dbClickFullScreen();
|
|
13937
13943
|
},
|
|
13938
13944
|
|
|
13945
|
+
videoRotateSize(li, rotateIndex) {
|
|
13946
|
+
let video = li.querySelector('video');
|
|
13947
|
+
let videoWidth = video.videoWidth;
|
|
13948
|
+
let videoHeight = video.videoHeight;
|
|
13949
|
+
let vWidth = video.offsetWidth;
|
|
13950
|
+
let vHeight = video.offsetHeight;
|
|
13951
|
+
let liWidth = li.offsetWidth;
|
|
13952
|
+
let liHeight = li.offsetHeight;
|
|
13953
|
+
|
|
13954
|
+
if (rotateIndex == 0) {
|
|
13955
|
+
//0
|
|
13956
|
+
$(video).attr('class', 'video-box');
|
|
13957
|
+
$(video).css('height', '');
|
|
13958
|
+
$(video).css('width', 'auto');
|
|
13959
|
+
video.style.position = 'static';
|
|
13960
|
+
video.style.transform = 'none';
|
|
13961
|
+
$(video).css('left', '');
|
|
13962
|
+
$(video).css('top', '');
|
|
13963
|
+
} else if (rotateIndex == 3) {
|
|
13964
|
+
//3
|
|
13965
|
+
$(video).attr('class', 'video-box');
|
|
13966
|
+
video.style.position = 'absolute';
|
|
13967
|
+
video.style.transform = 'rotate(270deg)';
|
|
13968
|
+
|
|
13969
|
+
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
13970
|
+
//视频横向留白
|
|
13971
|
+
$(video).css('width', liHeight);
|
|
13972
|
+
$(video).css('height', 'auto');
|
|
13973
|
+
$(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
|
|
13974
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
|
|
13975
|
+
} else {
|
|
13976
|
+
//视频纵向留白
|
|
13977
|
+
$(video).css('height', liWidth);
|
|
13978
|
+
$(video).css('width', 'auto');
|
|
13979
|
+
$(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
|
|
13980
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
|
|
13981
|
+
}
|
|
13982
|
+
} else if (rotateIndex == 2) {
|
|
13983
|
+
//2
|
|
13984
|
+
$(video).attr('class', 'video-box');
|
|
13985
|
+
$(video).css('height', '');
|
|
13986
|
+
$(video).css('width', 'auto');
|
|
13987
|
+
video.style.position = 'static';
|
|
13988
|
+
video.style.transform = 'rotate(180deg)';
|
|
13989
|
+
$(video).css('left', '');
|
|
13990
|
+
$(video).css('top', '');
|
|
13991
|
+
} else if (rotateIndex == 1) {
|
|
13992
|
+
//1
|
|
13993
|
+
$(video).attr('class', 'video-box');
|
|
13994
|
+
video.style.position = 'absolute';
|
|
13995
|
+
video.style.transform = 'rotate(90deg)';
|
|
13996
|
+
|
|
13997
|
+
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
13998
|
+
//视频横向留白
|
|
13999
|
+
$(video).css('width', liHeight);
|
|
14000
|
+
$(video).css('height', 'auto');
|
|
14001
|
+
$(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
|
|
14002
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
|
|
14003
|
+
} else {
|
|
14004
|
+
//视频纵向留白
|
|
14005
|
+
$(video).css('height', liWidth);
|
|
14006
|
+
$(video).css('width', 'auto');
|
|
14007
|
+
$(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
|
|
14008
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
|
|
14009
|
+
}
|
|
14010
|
+
}
|
|
14011
|
+
},
|
|
14012
|
+
|
|
13939
14013
|
/**
|
|
13940
14014
|
* 初始化按钮点击事件
|
|
13941
14015
|
*/
|
|
13942
14016
|
_initBtnEvent: function () {
|
|
13943
|
-
let me = this;
|
|
14017
|
+
let me = this; // 设置视频窗可拖拽
|
|
14018
|
+
|
|
14019
|
+
var src = null;
|
|
14020
|
+
$(me.selector + ' li').bind("dragstart", function (ev) {
|
|
14021
|
+
src = $(this);
|
|
14022
|
+
});
|
|
14023
|
+
$(me.selector + ' li').bind("dragover", function (ev) {
|
|
14024
|
+
ev.preventDefault();
|
|
14025
|
+
});
|
|
14026
|
+
$(me.selector + ' li').bind("drop", function (ev) {
|
|
14027
|
+
ev.preventDefault();
|
|
14028
|
+
|
|
14029
|
+
if (src.prop("outerHTML") === $(this).prop("outerHTML")) {
|
|
14030
|
+
return;
|
|
14031
|
+
}
|
|
14032
|
+
|
|
14033
|
+
var target = $(this);
|
|
14034
|
+
var srcIndex = src.index();
|
|
14035
|
+
var targetIndex = target.index();
|
|
14036
|
+
|
|
14037
|
+
if (srcIndex > targetIndex) {
|
|
14038
|
+
src.insertBefore(target);
|
|
14039
|
+
target.insertAfter($(me.selector + ' .video-main li.screen').eq(srcIndex));
|
|
14040
|
+
} else {
|
|
14041
|
+
src.insertAfter(target);
|
|
14042
|
+
target.insertBefore($(me.selector + ' .video-main li.screen').eq(srcIndex));
|
|
14043
|
+
}
|
|
14044
|
+
});
|
|
13944
14045
|
let videoFlagObj = $('[video-flag="' + me._opts.windowsBeginIndex + '"]'); //锁定视频事件
|
|
13945
14046
|
|
|
13946
14047
|
videoFlagObj.find("button[name='lockVideo']").click(function () {
|
|
@@ -13958,6 +14059,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13958
14059
|
me.VIDEO_DATA[index].isLockVideo = true;
|
|
13959
14060
|
$(this).attr('class', 'lock-video-btn');
|
|
13960
14061
|
}
|
|
14062
|
+
});
|
|
14063
|
+
videoFlagObj.find('button[name=rotateVideo]').click(function () {
|
|
14064
|
+
let rotateIndex = Number($(this).attr("rotate-index"));
|
|
14065
|
+
rotateIndex++;
|
|
14066
|
+
$(this).attr("rotate-index", rotateIndex % 4);
|
|
14067
|
+
let li = $(this).parent().parent()[0];
|
|
14068
|
+
videoRotateSize(li, rotateIndex);
|
|
13961
14069
|
}); //接收音频事件
|
|
13962
14070
|
|
|
13963
14071
|
videoFlagObj.find("button[name='recvAudio']").click(function () {
|
|
@@ -14194,7 +14302,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14194
14302
|
for (let i = index; i < index + me._opts.windowsNum; i++) {
|
|
14195
14303
|
videoHtml += '<li class="screen-' + i + '" index="' + (i - 1) + '"><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>';
|
|
14196
14304
|
|
|
14197
|
-
checkUserMediaAvailable() && (videoHtml += '<button type="button" class="unsend-audio-btn hide" name="sendAudio"></button>');
|
|
14305
|
+
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>');
|
|
14198
14306
|
videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
|
|
14199
14307
|
}
|
|
14200
14308
|
|
|
@@ -25390,6 +25498,7 @@ __webpack_require__.d(__webpack_exports__, "doLogout", function() { return /* re
|
|
|
25390
25498
|
__webpack_require__.d(__webpack_exports__, "keepHeart", function() { return /* reexport */ keepHeart; });
|
|
25391
25499
|
__webpack_require__.d(__webpack_exports__, "initCometd", function() { return /* reexport */ initCometd; });
|
|
25392
25500
|
__webpack_require__.d(__webpack_exports__, "initVideo", function() { return /* reexport */ initVideo; });
|
|
25501
|
+
__webpack_require__.d(__webpack_exports__, "sha256_digest", function() { return /* reexport */ sha256_digest; });
|
|
25393
25502
|
__webpack_require__.d(__webpack_exports__, "accountOp", function() { return /* reexport */ accountOp; });
|
|
25394
25503
|
__webpack_require__.d(__webpack_exports__, "aduioOp", function() { return /* reexport */ aduioOp; });
|
|
25395
25504
|
__webpack_require__.d(__webpack_exports__, "aduioVideoOp", function() { return /* reexport */ aduioVideoOp; });
|
|
@@ -25856,6 +25965,25 @@ let account = {
|
|
|
25856
25965
|
}
|
|
25857
25966
|
}
|
|
25858
25967
|
},
|
|
25968
|
+
updateDeptDataPermission: {
|
|
25969
|
+
//更新账号通讯录权限
|
|
25970
|
+
url: '/scooper-core-rest/data/system/permisions/pmDataRPermManage/updatePmDataRPerm',
|
|
25971
|
+
requestParam: {
|
|
25972
|
+
accId: '',
|
|
25973
|
+
deptOrgCodes: '' //a:*代表完整的通讯录
|
|
25974
|
+
|
|
25975
|
+
},
|
|
25976
|
+
responseParam: {
|
|
25977
|
+
code: '',
|
|
25978
|
+
//返回结果状态码
|
|
25979
|
+
message: '',
|
|
25980
|
+
systemTime: '',
|
|
25981
|
+
//yyyy-MM-dd HH:mm:ss
|
|
25982
|
+
data: {
|
|
25983
|
+
obj: 0
|
|
25984
|
+
}
|
|
25985
|
+
}
|
|
25986
|
+
},
|
|
25859
25987
|
getAccountDetailNet: {
|
|
25860
25988
|
//查询帐号详情
|
|
25861
25989
|
|
|
@@ -28428,7 +28556,9 @@ let location_url_location = {
|
|
|
28428
28556
|
requestParam: {
|
|
28429
28557
|
mapId: '',
|
|
28430
28558
|
//地图类型
|
|
28431
|
-
|
|
28559
|
+
kw: '',
|
|
28560
|
+
//关键字
|
|
28561
|
+
layers: '' //设备类型 可选
|
|
28432
28562
|
|
|
28433
28563
|
},
|
|
28434
28564
|
responseParam: {
|
|
@@ -30498,6 +30628,21 @@ const accountOp = sip => {
|
|
|
30498
30628
|
}, '', net.method);
|
|
30499
30629
|
});
|
|
30500
30630
|
},
|
|
30631
|
+
updateDeptPerm: function (param) {
|
|
30632
|
+
let net = account_net_url.updateDeptDataPermission;
|
|
30633
|
+
return new Promise((resolve, reject) => {
|
|
30634
|
+
loadJson(server_ + net.url, { ...param
|
|
30635
|
+
}, function (ret) {
|
|
30636
|
+
if (ret.code == 0) {
|
|
30637
|
+
console.log("账号通讯录权限更新完成", ret.code);
|
|
30638
|
+
resolve(ret);
|
|
30639
|
+
} else {
|
|
30640
|
+
console.log("账号通讯录权限更新失败", ret.code);
|
|
30641
|
+
reject(ret.code);
|
|
30642
|
+
}
|
|
30643
|
+
}, '', net.method);
|
|
30644
|
+
});
|
|
30645
|
+
},
|
|
30501
30646
|
resetPwd: function (param) {
|
|
30502
30647
|
let net = account_net_url.resetPwdNet;
|
|
30503
30648
|
return new Promise((resolve, reject) => {
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|