79 lines
3.7 KiB
Plaintext
79 lines
3.7 KiB
Plaintext
|
|
/**
|
|||
|
|
* 清晰物联
|
|||
|
|
*
|
|||
|
|
*/
|
|||
|
|
let _cf = {
|
|||
|
|
ver: 'debug',
|
|||
|
|
q2http_url: localStorage.getItem("q2http_url")? localStorage.getItem("q2http_url"):'http://220.248.250.31:29605/icvs2/',// 连接icvs平台地址,如果是https协议,地址为'https://ip:port/icvs2/',ip为视频转码服务部署所在服务器的ip地址,port为q2http转码服务端口
|
|||
|
|
websocket_url: localStorage.getItem("websocket_url")? localStorage.getItem("websocket_url"):'ws://220.248.250.31:29605/wss',// websocket地址,如果是https协议,地址为'wss://ip:sslPort/wss',ip为视频转码服务部署所在服务器的ip地址,sslPort为SSL协议的监听端口,如果是http协议,sslPort和q2http_url使用ip和端口一致
|
|||
|
|
q2http_urlN: localStorage.getItem("q2http_urlN")? localStorage.getItem("q2http_urlN"):'http://10.138.219.3:29605/icvs2/',// 连接icvs平台地址,如果是https协议,地址为'https://ip:port/icvs2/',ip为视频转码服务部署所在服务器的ip地址,port为q2http转码服务端口
|
|||
|
|
websocket_urlN: localStorage.getItem("websocket_urlN")? localStorage.getItem("websocket_urlN"):'ws://10.138.219.3:29605/wss',// websocket地址,如果是https协议,地址为'wss://ip:sslPort/wss',ip为视频转码服务部署所在服务器的ip地址,sslPort为SSL协议的监听端口,如果是http协议,sslPort和q2http_url使用ip和端口一致
|
|||
|
|
// - 配置登录参数
|
|||
|
|
// - 配置登录参数
|
|||
|
|
connParams: {
|
|||
|
|
// - 登录平台IP
|
|||
|
|
address: localStorage.getItem("address")? localStorage.getItem("address"):"10.138.219.3",
|
|||
|
|
port: localStorage.getItem("port")? localStorage.getItem("port"):"29988",
|
|||
|
|
// - 登录平台用户名
|
|||
|
|
user:localStorage.getItem("user")? localStorage.getItem("user"): "bns4",
|
|||
|
|
// - 登录平台密码
|
|||
|
|
password: localStorage.getItem("password")? localStorage.getItem("password"):'Bns@2023**',
|
|||
|
|
// - 登录平台企业ID
|
|||
|
|
epid: localStorage.getItem("epid")? localStorage.getItem("epid"):"system",
|
|||
|
|
// - 登录平台是否通过网闸模式
|
|||
|
|
bfix: localStorage.getItem("bfix")? localStorage.getItem("bfix")*1:1
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
console.log(_cf);
|
|||
|
|
console.log(localStorage.getItem("websocket_url"),localStorage.getItem("q2http_url"));
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 统一视频平台
|
|||
|
|
*/
|
|||
|
|
let ty = {
|
|||
|
|
basePath: "http://11.158.0.129:80/",
|
|||
|
|
connParams: {
|
|||
|
|
// - 登录平台IP
|
|||
|
|
address: "11.158.0.129",
|
|||
|
|
port: "80",
|
|||
|
|
// - 登录平台用户名
|
|||
|
|
ak: 'wangzh0059',
|
|||
|
|
// - 登录平台密码
|
|||
|
|
sk: 'RGVzdGlueTEyMzQ1Nn4='
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
/**
|
|||
|
|
* 统一云台控制
|
|||
|
|
* up: [0x0402, 0x0401]
|
|||
|
|
* 操作类型:[启动参数,停止参数]
|
|||
|
|
*/
|
|||
|
|
let controlType = {
|
|||
|
|
up: [0x0402, 0x0401],
|
|||
|
|
down: [0x0404, 0x0403],
|
|||
|
|
left: [0x0504, 0x0503],
|
|||
|
|
right: [0x0502, 0x0501],
|
|||
|
|
farFocus: [0x0204, 0x0203],
|
|||
|
|
nearFocus: [0x0202, 0x0201],
|
|||
|
|
amplify: [0x0304, 0x0303],
|
|||
|
|
shrink: [0x0302, 0x0301],
|
|||
|
|
apertureMinus: [0x0104, 0x0103],
|
|||
|
|
apertureAdd: [0x0102, 0x0101]
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 清晰云台控制
|
|||
|
|
* up: ['up', 'PTZ/C_PTZ_Turn', true, 'stop']
|
|||
|
|
* 操作类型:[启动参数,请求地址,是否异步,'停止参数']
|
|||
|
|
*/
|
|||
|
|
let qxControlType = {
|
|||
|
|
up: ['up', 'PTZ/C_PTZ_Turn', true, 'stop'],
|
|||
|
|
down: ['down', 'PTZ/C_PTZ_Turn', true, 'stop'],
|
|||
|
|
left: ['left', 'PTZ/C_PTZ_Turn', true, 'stop'],
|
|||
|
|
right: ['right', 'PTZ/C_PTZ_Turn', true, 'stop'],
|
|||
|
|
farFocus: ['faraway', 'PTZ/C_PTZ_MakeFocusFar', false, 'PTZ/C_PTZ_StopFocusMove'],
|
|||
|
|
nearFocus: ['near', 'PTZ/C_PTZ_MakeFocusNear', false, 'PTZ/C_PTZ_StopFocusMove'],
|
|||
|
|
shrink: ['zoominout', 'PTZ/C_PTZ_ZoomOutPicture', false, 'PTZ/C_PTZ_StopPictureZoom'],
|
|||
|
|
amplify: ['zoomin', 'PTZ/C_PTZ_ZoomInPicture', false, 'PTZ/C_PTZ_StopPictureZoom'],
|
|||
|
|
/*apertureMinus: ['zoominout', 0x0103],
|
|||
|
|
apertureAdd: ['zoomin', 0x0101]*/
|
|||
|
|
}
|