考试
This commit is contained in:
25739
public/static/js/huaweiSDK/ICPSDK_ALL.js
Normal file
25739
public/static/js/huaweiSDK/ICPSDK_ALL.js
Normal file
File diff suppressed because it is too large
Load Diff
1691
public/static/js/huaweiSDK/JSSDK_interface/ICPSDK_ALL.js
Normal file
1691
public/static/js/huaweiSDK/JSSDK_interface/ICPSDK_ALL.js
Normal file
File diff suppressed because it is too large
Load Diff
2099
public/static/js/huaweiSDK/UMP_JS_SDK.css
Normal file
2099
public/static/js/huaweiSDK/UMP_JS_SDK.css
Normal file
File diff suppressed because one or more lines are too long
6420
public/static/js/huaweiSDK/UMP_JS_SDK.js
Normal file
6420
public/static/js/huaweiSDK/UMP_JS_SDK.js
Normal file
File diff suppressed because it is too large
Load Diff
2
public/static/js/huaweiSDK/jquery.min.js
vendored
Normal file
2
public/static/js/huaweiSDK/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
117
public/static/js/huaweiSDK/rh.js
Normal file
117
public/static/js/huaweiSDK/rh.js
Normal file
@ -0,0 +1,117 @@
|
||||
let ump = null;
|
||||
UMPSDK.sdkRegister({
|
||||
eventType: "VoiceNotify",
|
||||
eventName: "OnDialInRinging",
|
||||
callback: (data) => {
|
||||
console.log(4444, data);
|
||||
},
|
||||
});
|
||||
// 登录
|
||||
function rhlogin(isdn, isdnPwd) {
|
||||
if (typeof window.ICPSDK !== "function") {
|
||||
ump.showMessage("未安装融合控件", "error");
|
||||
return console.log("ICPSDK is not available or is not a constructor");
|
||||
}
|
||||
const config = {
|
||||
mdcIP: "171.221.254.50",
|
||||
isdn: isdn,
|
||||
isdnPwd: isdnPwd,
|
||||
url: "",
|
||||
callback: (res) => {
|
||||
// 这里判断是否初始化成功
|
||||
if (res && res.rsp === "0") {
|
||||
ump.showMessage("初始化成功", "success");
|
||||
} else {
|
||||
ump.showMessage("初始化失败", "error");
|
||||
}
|
||||
},
|
||||
// 仅为demo展示,正式使用可不传
|
||||
logCallback: (res) => {
|
||||
const text = $("#log-info").text();
|
||||
console.log(text + "\n" + res);
|
||||
},
|
||||
};
|
||||
ump = new UMPSDK(config);
|
||||
};
|
||||
|
||||
//语音呼叫
|
||||
function voiceCall(sbbh) {
|
||||
const style = {
|
||||
posX: undefined,
|
||||
posY: undefined,
|
||||
width: undefined,
|
||||
height: undefined,
|
||||
borderColor: undefined,
|
||||
bgColor: $("#ump-phone-card-body-input1").val(),
|
||||
"z-index": 99999,
|
||||
};
|
||||
ump.voice.dial(sbbh, style);
|
||||
};
|
||||
|
||||
//视频呼叫
|
||||
function videoCall(sbbh) {
|
||||
const style = {
|
||||
posX: undefined,
|
||||
posY: undefined,
|
||||
width: undefined,
|
||||
height: undefined,
|
||||
borderColor: undefined,
|
||||
"z-index": 99999,
|
||||
// bgColor: $("#ump-phone-card-body-input1").val(),
|
||||
};
|
||||
ump.video.dial(sbbh, style);
|
||||
};
|
||||
|
||||
//视频监控
|
||||
/*
|
||||
fmt 分辨率
|
||||
4K
|
||||
2K
|
||||
1080P
|
||||
720P
|
||||
D1
|
||||
CIF
|
||||
QCIF
|
||||
|
||||
mute 伴音
|
||||
0 带伴音
|
||||
1 不带伴音
|
||||
|
||||
confirm 接听方式
|
||||
0 自动接听
|
||||
1 手动接听
|
||||
|
||||
camera 选择摄像头
|
||||
0 前置
|
||||
1 后置
|
||||
2 外置摄像头
|
||||
*/
|
||||
function videoMonitoring(sbbh, fmt, mute, confirm, camera) {
|
||||
const style = {
|
||||
posX: undefined,
|
||||
posY: undefined,
|
||||
width: undefined,
|
||||
height: undefined,
|
||||
"z-index": 99999,
|
||||
};
|
||||
ump.monitor.dial(sbbh, fmt, mute, confirm, camera, style);
|
||||
};
|
||||
//组呼
|
||||
function groupCall(sbbh) {
|
||||
const style = {
|
||||
posX: "",
|
||||
posY: "",
|
||||
width: "",
|
||||
height: "",
|
||||
borderColor: "",
|
||||
"z-index": 99999,
|
||||
// bgColor: $("#ump-group-card-body-changeColor-input").val(),
|
||||
};
|
||||
ump.group.open(sbbh, style);
|
||||
};
|
||||
//短信
|
||||
function sMSSending(sbbh, message) {
|
||||
const targets = sbbh.split(",");
|
||||
ump.msg.send(targets, message);
|
||||
};
|
||||
|
9
public/static/js/huaweiSDK/sha256.min.js
vendored
Normal file
9
public/static/js/huaweiSDK/sha256.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/static/js/huaweiSDK/yuv-player.js
Normal file
1
public/static/js/huaweiSDK/yuv-player.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user