fix:更改监控设备端口号
This commit is contained in:
parent
1c4eb04604
commit
d07bdb77d8
|
|
@ -14,18 +14,18 @@
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { ThinRenderTargetTexture } from 'babylonjs';
|
import { ThinRenderTargetTexture } from "babylonjs";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isZh: true,
|
isZh: true,
|
||||||
szIp: '192.168.1.64',
|
szIp: "192.168.1.65",
|
||||||
ipPort: '80',
|
ipPort: "80",
|
||||||
username: 'admin',
|
username: "admin",
|
||||||
password: '9093QQww',
|
password: "9093QQww",
|
||||||
iPrototocol: 1, //http协议:1:表示http协议2:表示https协议
|
iPrototocol: 1, //http协议:1:表示http协议2:表示https协议
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
@ -39,20 +39,35 @@ export default {
|
||||||
iWndowType: 2, //分裂系数N*N
|
iWndowType: 2, //分裂系数N*N
|
||||||
bWndFull: true, //双击全屏
|
bWndFull: true, //双击全屏
|
||||||
cbInitPluginCompleted: function () {
|
cbInitPluginCompleted: function () {
|
||||||
WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin").then(() => {
|
WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin").then(
|
||||||
WebVideoCtrl.I_CheckPluginVersion().then((bFlog) => {
|
() => {
|
||||||
|
WebVideoCtrl.I_CheckPluginVersion().then(
|
||||||
|
(bFlog) => {
|
||||||
if (bFlog) {
|
if (bFlog) {
|
||||||
alert("插件版本有更新,请双击开发包里的HCWebSDKPlugin.exe升级")
|
alert(
|
||||||
|
"插件版本有更新,请双击开发包里的HCWebSDKPlugin.exe升级"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
alert(
|
||||||
|
"插件初始化失败,请确认是否安装插件,如果未安装,请请双击开发包里的HCWebSDKPlugin.exe安装"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}, () => {
|
|
||||||
alert("插件初始化失败,请确认是否安装插件,如果未安装,请请双击开发包里的HCWebSDKPlugin.exe安装")
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
Login() {
|
Login() {
|
||||||
WebVideoCtrl.I_Login(this.szIp, this.iPrototocol, this.ipPort, this.username, this.password, {
|
WebVideoCtrl.I_Login(
|
||||||
|
this.szIp,
|
||||||
|
this.iPrototocol,
|
||||||
|
this.ipPort,
|
||||||
|
this.username,
|
||||||
|
this.password,
|
||||||
|
{
|
||||||
async: true,
|
async: true,
|
||||||
cgi: 1,
|
cgi: 1,
|
||||||
success: (xmlDoc) => {
|
success: (xmlDoc) => {
|
||||||
|
|
@ -60,16 +75,17 @@ export default {
|
||||||
},
|
},
|
||||||
error: (xmlDoc) => {
|
error: (xmlDoc) => {
|
||||||
console.log("登录失败", xmlDoc);
|
console.log("登录失败", xmlDoc);
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
);
|
||||||
},
|
},
|
||||||
//预览
|
//预览
|
||||||
vShow() {
|
vShow() {
|
||||||
WebVideoCtrl.I_StartRealPlay(this.szIp + '_' + this.ipPort, {
|
WebVideoCtrl.I_StartRealPlay(this.szIp + "_" + this.ipPort, {
|
||||||
success: () => {
|
success: () => {
|
||||||
console.log("预览成功");
|
console.log("预览成功");
|
||||||
}
|
},
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
//停止单个预览
|
//停止单个预览
|
||||||
stopShow() {
|
stopShow() {
|
||||||
|
|
@ -77,7 +93,7 @@ export default {
|
||||||
iWndIndex: 1, //tingzhichuangkou
|
iWndIndex: 1, //tingzhichuangkou
|
||||||
success: () => {
|
success: () => {
|
||||||
console.log("停止预览成功");
|
console.log("停止预览成功");
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//停止预览
|
//停止预览
|
||||||
|
|
@ -86,16 +102,14 @@ export default {
|
||||||
},
|
},
|
||||||
//登出
|
//登出
|
||||||
logOut() {
|
logOut() {
|
||||||
WebVideoCtrl.I_Logout(this.szIp + '_' + this.ipPort, {
|
WebVideoCtrl.I_Logout(this.szIp + "_" + this.ipPort, {});
|
||||||
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
//销毁插件
|
//销毁插件
|
||||||
breakdom() {
|
breakdom() {
|
||||||
WebVideoCtrl.I_DestroyPlugin();
|
WebVideoCtrl.I_DestroyPlugin();
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.plugin {
|
.plugin {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue