我使用海康威视Web3.2_控件开发包但是登录她一直报错,按照手册我就是这样的。我刚入手,不懂,求指点一二。
// 登录
clickLogin() {
if (!this.ip || !this.port) {
console.log(11);
return
}
this.szDeviceIdentify = this.ip + "_" + this.port
WebVideoCtrl.I_Login(this.ip, 1, this.port, this.username, this.password,
{
success: function (xmlDoc) {
this.getChannelInfo() // 获取模拟通道
this.getDevicePort() // 获取端口 (影响不大)
},
error: function (e) { //失败的回调函数
console.log(this.ip, 1, this.port, this.username, this.password, " 登录失败!");
}
})
},