|
|
|
|
@ -65,12 +65,12 @@ client.serverConnectStateChanged.on((state) => { |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
export function regist() { |
|
|
|
|
var ip = "http://192.168.1.134";//$("txtServerIP").value;
|
|
|
|
|
var port = "8081";////$("txtServerPort").value;
|
|
|
|
|
var businesPort = $("txtbusinesPort").value; |
|
|
|
|
var userName = $("txtUsername").value; |
|
|
|
|
var password = $("txtPassword").value; |
|
|
|
|
var userType = $("cmbUserType").value; |
|
|
|
|
var ip = "192.168.1.134";//$("txtServerIP").value;
|
|
|
|
|
var port = "7443";////$("txtServerPort").value;
|
|
|
|
|
var businesPort = '60002';//$("txtbusinesPort").value;
|
|
|
|
|
var userName = '2000';//$("txtUsername").value;
|
|
|
|
|
var password = '123456';//$("txtPassword").value;
|
|
|
|
|
var userType = '2';//$("cmbUserType").value;
|
|
|
|
|
// var options = { ip, port, businesPort, userName, password, userType, null: HTMLVideoElement, videoRemoteElement }
|
|
|
|
|
|
|
|
|
|
var resourceUrl = ""; |
|
|
|
|
@ -78,9 +78,10 @@ export function regist() { |
|
|
|
|
|
|
|
|
|
// var resourceUrl = "softswitch";
|
|
|
|
|
// var businessResourceUrl = "dispatch";
|
|
|
|
|
var options = { ip, port, businesPort, userName, password, userType, resourceUrl, businessResourceUrl } |
|
|
|
|
// var options = { ip, port, businesPort, userName, password, userType, resourceUrl, businessResourceUrl }
|
|
|
|
|
|
|
|
|
|
// var options = { ip, port, businesPort, userName, password, userType }
|
|
|
|
|
var options = { ip, port, businesPort, userName, password, userType } |
|
|
|
|
console.log('register') |
|
|
|
|
client.regist(options); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -89,7 +90,7 @@ export function unRegist() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export function isRegisted() { |
|
|
|
|
alert("已注册: " + client.isRegisted); |
|
|
|
|
console.log("已注册: " + client.isRegisted); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// function onForceKickoutClick() {
|
|
|
|
|
|