1.海康威视搜索设备软件
2.海康威视项目报错
报错:
hikvision.HTML:61 Access to XMLHttpRequest at ‘https://open.ys7.com/api/lapp/token/get/?appKey=6532364…&appSecret=b043a00…’ from origin ‘null’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains the invalid value ‘null//undefined’
改变html打开方式,最好让它部署在服务器上运行,而不是在本地运行
3.实现代码
https://github.com/yogesa/hikvision.git
报错1:
WebSocket connection to 'wss://sqjsdecoder.ys7.com:20006/?version=0.1&cipherSuites=0&sessionID=' failed:
ezuikit.js:1614 Uncaught (in promise) TypeError: Cannot read property 'oError' of undefined
at ezuikit.js:1614
at Array.find (<anonymous>)
at ezuikit.js:1614
截图如下:
可能是因为开了科学上网的原因,加载不下来min.js,所以,把科学上网的软件关掉即可