npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hikvision-node-linux

v1.0.0

Published

[Linux]This module will provide a serial of node api to get the video stream of hikvision dvr.

Downloads

1

Readme

海康威视node扩展---linux

项目说明

本项目是基于海康威视的开放接口(linux64版本)进行二次开发而成的nodeJs扩展模块。

node模块

模块简介

模块名称: hikvision-node-linux
依赖:
      linuxLib/
*该库文件夹为海康威视官网的公开库,在node_modules/hikvision-node-linux/lib中可以找到*
*该模块仅用于取得摄像头的数据流,并不做其他控制使用*

模块安装

```npm install hikvision-node-linux```
需复制node_modules/hikvision-node-linux下的linuxLib到你的使用目录

使用模块

**导入模块**
var hkvision = require("hikvision-node-linux");

模块说明

  • 错误码 |错误码|含义| |:--:|:--:| |0| 成功| |300| 找不到海康动态库| |301| 动态库函数未找到| |302| 未登录| |303| 参数太少| |1|用户名密码错误。注册时输入的用户名或者密码错误。| |7|连接设备失败。设备不在线或网络原因引起的连接超时等。| |12|接口调用次序错误。| |17|参数错误。SDK接口中给入的输入或输出参数为空,或者参数格式或值不符合要求。| |其他|见海康接口错误码|

  • 获取当前版本号信息 函数: version 参数: 无 返回值:版本号

  • 设备初始化 函数: initDev 参数: 无 返回值: 0成功;其他见错误码表

  • 设备登录 函数: loginDev 参数: |参数|含义|说明| |:-:|:-:|:-:| |devAddress|目标地址| ipv4地址(15位)| |devPort | 目标端口号| 4位(8000)| |userName | 用户名| 5位(admin) |userPasswd| 用户密码| 8位 | 返回值: 0成功;其他见错误码表

  • 设备注销 函数: logoutDev 参数: 无 返回值: 0成功;其他见错误码表

  • 获取实时预览码流 函数: realPlay 参数: |参数|说明| |:-:|:-:| |通道号| 从0开始 | |码流回调函数| function(type, buf)| 返回值: 0成功;其他见错误码表

  • 停止实时播放 函数: stopRealPlay 参数: 无 返回值: 0成功;其他见错误码表

  • 获取回放码流 函数: playBack 参数: |参数|说明| |:-:|:-:| |通道号| 从0开始 |开始日期 | 形如: 20211028000000| |结束日期 | 形如:20211028235959| |码流回调函数| function(type, buf)| 返回值: 0成功;其他见错误码表

  • 开始回放 函数: playBackStart 参数: 无 返回值: 0成功; 其他见错误码表

  • 暂停回放 函数: playBackPause 参数: 无 返回值: 0成功; 其他见错误码表

  • 继续回放 函数: playBackResume 参数: 无 返回值: 0成功; 其他见错误码表

  • 快放回放 函数: playBackFast 参数: 无 返回值: 0成功; 其他见错误码表

  • 慢放回放 函数: playBackEnd 参数: 无 返回值: 0成功; 其他见错误码表

  • 正常速度回放 函数: playBackNormal 参数: 无 返回值: 0成功; 其他见错误码表

  • 停止回放 函数: playBackStop 参数: 无 返回值: 0成功; 其他见错误码表