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.common.js
CHANGED
|
@@ -12455,7 +12455,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
12455
12455
|
windowNums: num
|
|
12456
12456
|
});
|
|
12457
12457
|
me._opts.windows = num;
|
|
12458
|
-
me._opts.extra = extra;
|
|
12458
|
+
me._opts.extra = extra; //设置旋转了的视频样式
|
|
12459
12459
|
},
|
|
12460
12460
|
|
|
12461
12461
|
/**
|
|
@@ -13459,7 +13459,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13459
13459
|
this.dispatch('screenchange', {
|
|
13460
13460
|
windowNums: num,
|
|
13461
13461
|
flag: me._opts.flag
|
|
13462
|
-
});
|
|
13462
|
+
}); //设置旋转视频的样式
|
|
13463
|
+
|
|
13464
|
+
for (let k = 0; k < _li.length(); k++) {
|
|
13465
|
+
let rotateIndex = _li.eq(k).find('button[name=rotateVideo]').attr('rotate-index');
|
|
13466
|
+
|
|
13467
|
+
if (rotateIndex != 0 && rotateIndex != 2) videoRotateSize(_li.eq(k), rotateIndex);
|
|
13468
|
+
}
|
|
13463
13469
|
},
|
|
13464
13470
|
|
|
13465
13471
|
/**
|
|
@@ -13927,11 +13933,106 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13927
13933
|
me._dbClickFullScreen();
|
|
13928
13934
|
},
|
|
13929
13935
|
|
|
13936
|
+
videoRotateSize(li, rotateIndex) {
|
|
13937
|
+
let video = li.querySelector('video');
|
|
13938
|
+
let videoWidth = video.videoWidth;
|
|
13939
|
+
let videoHeight = video.videoHeight;
|
|
13940
|
+
let vWidth = video.offsetWidth;
|
|
13941
|
+
let vHeight = video.offsetHeight;
|
|
13942
|
+
let liWidth = li.offsetWidth;
|
|
13943
|
+
let liHeight = li.offsetHeight;
|
|
13944
|
+
|
|
13945
|
+
if (rotateIndex == 0) {
|
|
13946
|
+
//0
|
|
13947
|
+
$(video).attr('class', 'video-box');
|
|
13948
|
+
$(video).css('height', '');
|
|
13949
|
+
$(video).css('width', 'auto');
|
|
13950
|
+
video.style.position = 'static';
|
|
13951
|
+
video.style.transform = 'none';
|
|
13952
|
+
$(video).css('left', '');
|
|
13953
|
+
$(video).css('top', '');
|
|
13954
|
+
} else if (rotateIndex == 3) {
|
|
13955
|
+
//3
|
|
13956
|
+
$(video).attr('class', 'video-box');
|
|
13957
|
+
video.style.position = 'absolute';
|
|
13958
|
+
video.style.transform = 'rotate(270deg)';
|
|
13959
|
+
|
|
13960
|
+
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
13961
|
+
//视频横向留白
|
|
13962
|
+
$(video).css('width', liHeight);
|
|
13963
|
+
$(video).css('height', 'auto');
|
|
13964
|
+
$(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
|
|
13965
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
|
|
13966
|
+
} else {
|
|
13967
|
+
//视频纵向留白
|
|
13968
|
+
$(video).css('height', liWidth);
|
|
13969
|
+
$(video).css('width', 'auto');
|
|
13970
|
+
$(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
|
|
13971
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
|
|
13972
|
+
}
|
|
13973
|
+
} else if (rotateIndex == 2) {
|
|
13974
|
+
//2
|
|
13975
|
+
$(video).attr('class', 'video-box');
|
|
13976
|
+
$(video).css('height', '');
|
|
13977
|
+
$(video).css('width', 'auto');
|
|
13978
|
+
video.style.position = 'static';
|
|
13979
|
+
video.style.transform = 'rotate(180deg)';
|
|
13980
|
+
$(video).css('left', '');
|
|
13981
|
+
$(video).css('top', '');
|
|
13982
|
+
} else if (rotateIndex == 1) {
|
|
13983
|
+
//1
|
|
13984
|
+
$(video).attr('class', 'video-box');
|
|
13985
|
+
video.style.position = 'absolute';
|
|
13986
|
+
video.style.transform = 'rotate(90deg)';
|
|
13987
|
+
|
|
13988
|
+
if (videoWidth / videoHeight > liWidth / liHeight) {
|
|
13989
|
+
//视频横向留白
|
|
13990
|
+
$(video).css('width', liHeight);
|
|
13991
|
+
$(video).css('height', 'auto');
|
|
13992
|
+
$(video).css('left', 'calc(' + liWidth + ' / 2' + ' - ' + liHeight + ' / 2)');
|
|
13993
|
+
$(video).css('top', 'calc(-' + liHeight / 2 + ' / ' + vWidth + ' * ' + vHeight + ' + ' + liHeight + ' / 2)');
|
|
13994
|
+
} else {
|
|
13995
|
+
//视频纵向留白
|
|
13996
|
+
$(video).css('height', liWidth);
|
|
13997
|
+
$(video).css('width', 'auto');
|
|
13998
|
+
$(video).css('left', 'calc(' + liHeight + ' / 2' + ' - ' + liWidth + ' / 2)');
|
|
13999
|
+
$(video).css('top', 'calc(-' + liWidth / 2 + ' / ' + vHeight + ' * ' + vWidth + ' + ' + liWidth + ' / 2)');
|
|
14000
|
+
}
|
|
14001
|
+
}
|
|
14002
|
+
},
|
|
14003
|
+
|
|
13930
14004
|
/**
|
|
13931
14005
|
* 初始化按钮点击事件
|
|
13932
14006
|
*/
|
|
13933
14007
|
_initBtnEvent: function () {
|
|
13934
|
-
let me = this;
|
|
14008
|
+
let me = this; // 设置视频窗可拖拽
|
|
14009
|
+
|
|
14010
|
+
var src = null;
|
|
14011
|
+
$(me.selector + ' li').bind("dragstart", function (ev) {
|
|
14012
|
+
src = $(this);
|
|
14013
|
+
});
|
|
14014
|
+
$(me.selector + ' li').bind("dragover", function (ev) {
|
|
14015
|
+
ev.preventDefault();
|
|
14016
|
+
});
|
|
14017
|
+
$(me.selector + ' li').bind("drop", function (ev) {
|
|
14018
|
+
ev.preventDefault();
|
|
14019
|
+
|
|
14020
|
+
if (src.prop("outerHTML") === $(this).prop("outerHTML")) {
|
|
14021
|
+
return;
|
|
14022
|
+
}
|
|
14023
|
+
|
|
14024
|
+
var target = $(this);
|
|
14025
|
+
var srcIndex = src.index();
|
|
14026
|
+
var targetIndex = target.index();
|
|
14027
|
+
|
|
14028
|
+
if (srcIndex > targetIndex) {
|
|
14029
|
+
src.insertBefore(target);
|
|
14030
|
+
target.insertAfter($(me.selector + ' .video-main li.screen').eq(srcIndex));
|
|
14031
|
+
} else {
|
|
14032
|
+
src.insertAfter(target);
|
|
14033
|
+
target.insertBefore($(me.selector + ' .video-main li.screen').eq(srcIndex));
|
|
14034
|
+
}
|
|
14035
|
+
});
|
|
13935
14036
|
let videoFlagObj = $('[video-flag="' + me._opts.windowsBeginIndex + '"]'); //锁定视频事件
|
|
13936
14037
|
|
|
13937
14038
|
videoFlagObj.find("button[name='lockVideo']").click(function () {
|
|
@@ -13949,6 +14050,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
13949
14050
|
me.VIDEO_DATA[index].isLockVideo = true;
|
|
13950
14051
|
$(this).attr('class', 'lock-video-btn');
|
|
13951
14052
|
}
|
|
14053
|
+
});
|
|
14054
|
+
videoFlagObj.find('button[name=rotateVideo]').click(function () {
|
|
14055
|
+
let rotateIndex = Number($(this).attr("rotate-index"));
|
|
14056
|
+
rotateIndex++;
|
|
14057
|
+
$(this).attr("rotate-index", rotateIndex % 4);
|
|
14058
|
+
let li = $(this).parent().parent()[0];
|
|
14059
|
+
videoRotateSize(li, rotateIndex);
|
|
13952
14060
|
}); //接收音频事件
|
|
13953
14061
|
|
|
13954
14062
|
videoFlagObj.find("button[name='recvAudio']").click(function () {
|
|
@@ -14185,7 +14293,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14185
14293
|
for (let i = index; i < index + me._opts.windowsNum; i++) {
|
|
14186
14294
|
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>';
|
|
14187
14295
|
|
|
14188
|
-
checkUserMediaAvailable() && (videoHtml += '<button type="button" class="unsend-audio-btn hide" name="sendAudio"></button>');
|
|
14296
|
+
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>');
|
|
14189
14297
|
videoHtml += '<button type="button" class="unrecv-audio-btn hide" name="recvAudio"></button>' + '<button type="button" class="close-btn hide" name="closeVideo"></button>' + '</div>' + '</li>';
|
|
14190
14298
|
}
|
|
14191
14299
|
|
|
@@ -25381,6 +25489,7 @@ __webpack_require__.d(__webpack_exports__, "doLogout", function() { return /* re
|
|
|
25381
25489
|
__webpack_require__.d(__webpack_exports__, "keepHeart", function() { return /* reexport */ keepHeart; });
|
|
25382
25490
|
__webpack_require__.d(__webpack_exports__, "initCometd", function() { return /* reexport */ initCometd; });
|
|
25383
25491
|
__webpack_require__.d(__webpack_exports__, "initVideo", function() { return /* reexport */ initVideo; });
|
|
25492
|
+
__webpack_require__.d(__webpack_exports__, "sha256_digest", function() { return /* reexport */ sha256_digest; });
|
|
25384
25493
|
__webpack_require__.d(__webpack_exports__, "accountOp", function() { return /* reexport */ accountOp; });
|
|
25385
25494
|
__webpack_require__.d(__webpack_exports__, "aduioOp", function() { return /* reexport */ aduioOp; });
|
|
25386
25495
|
__webpack_require__.d(__webpack_exports__, "aduioVideoOp", function() { return /* reexport */ aduioVideoOp; });
|
|
@@ -25847,6 +25956,25 @@ let account = {
|
|
|
25847
25956
|
}
|
|
25848
25957
|
}
|
|
25849
25958
|
},
|
|
25959
|
+
updateDeptDataPermission: {
|
|
25960
|
+
//更新账号通讯录权限
|
|
25961
|
+
url: '/scooper-core-rest/data/system/permisions/pmDataRPermManage/updatePmDataRPerm',
|
|
25962
|
+
requestParam: {
|
|
25963
|
+
accId: '',
|
|
25964
|
+
deptOrgCodes: '' //a:*代表完整的通讯录
|
|
25965
|
+
|
|
25966
|
+
},
|
|
25967
|
+
responseParam: {
|
|
25968
|
+
code: '',
|
|
25969
|
+
//返回结果状态码
|
|
25970
|
+
message: '',
|
|
25971
|
+
systemTime: '',
|
|
25972
|
+
//yyyy-MM-dd HH:mm:ss
|
|
25973
|
+
data: {
|
|
25974
|
+
obj: 0
|
|
25975
|
+
}
|
|
25976
|
+
}
|
|
25977
|
+
},
|
|
25850
25978
|
getAccountDetailNet: {
|
|
25851
25979
|
//查询帐号详情
|
|
25852
25980
|
|
|
@@ -28419,7 +28547,9 @@ let location_url_location = {
|
|
|
28419
28547
|
requestParam: {
|
|
28420
28548
|
mapId: '',
|
|
28421
28549
|
//地图类型
|
|
28422
|
-
|
|
28550
|
+
kw: '',
|
|
28551
|
+
//关键字
|
|
28552
|
+
layers: '' //设备类型 可选
|
|
28423
28553
|
|
|
28424
28554
|
},
|
|
28425
28555
|
responseParam: {
|
|
@@ -30489,6 +30619,21 @@ const accountOp = sip => {
|
|
|
30489
30619
|
}, '', net.method);
|
|
30490
30620
|
});
|
|
30491
30621
|
},
|
|
30622
|
+
updateDeptPerm: function (param) {
|
|
30623
|
+
let net = account_net_url.updateDeptDataPermission;
|
|
30624
|
+
return new Promise((resolve, reject) => {
|
|
30625
|
+
loadJson(server_ + net.url, { ...param
|
|
30626
|
+
}, function (ret) {
|
|
30627
|
+
if (ret.code == 0) {
|
|
30628
|
+
console.log("账号通讯录权限更新完成", ret.code);
|
|
30629
|
+
resolve(ret);
|
|
30630
|
+
} else {
|
|
30631
|
+
console.log("账号通讯录权限更新失败", ret.code);
|
|
30632
|
+
reject(ret.code);
|
|
30633
|
+
}
|
|
30634
|
+
}, '', net.method);
|
|
30635
|
+
});
|
|
30636
|
+
},
|
|
30492
30637
|
resetPwd: function (param) {
|
|
30493
30638
|
let net = account_net_url.resetPwdNet;
|
|
30494
30639
|
return new Promise((resolve, reject) => {
|
|
Binary file
|