hb_zhgd_screen/js/pages/video/qx/conf.js

43 lines
2.2 KiB
JavaScript
Raw Normal View History

2025-10-13 09:33:54 +08:00
/**
* 清晰物联
*
*/
let _cf = {
ver: 'debug',
q2http_url: 'http://220.248.250.31:29605/icvs2/',// 连接icvs平台地址,如果是https协议,地址为'https://ip:port/icvs2/',ip为视频转码服务部署所在服务器的ip地址,port为q2http转码服务端口
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: 'http://10.138.219.3:29605/icvs2/',// 连接icvs平台地址,如果是https协议,地址为'https://ip:port/icvs2/',ip为视频转码服务部署所在服务器的ip地址,port为q2http转码服务端口
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: "10.138.219.3",
port: "29988",
// - 登录平台用户名
user: "bns4",
// - 登录平台密码
password: 'Bns@2023**',
// - 登录平台企业ID
epid: "system",
// - 登录平台是否通过网闸模式
bfix: 1
}
}
/**
* 清晰云台控制
* 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]*/
}