1.0.7 • Published 3 years ago
@joraclista/ptz-edge-js v1.0.7
ptz-edge-js
API for controlling PTZ device on windows inside electron container
- Install dependencies
npm install
- To run electron app use
npm start
Usage inside your electron app
const ptz = require("@joraclista/ptz-edge-js");
ptz.getCameraZoomInfo('PTZ Pro 2', function(error, result) {
if (error) throw error;
console.log(JSON.stringify(result));
});
ptz.moveLeft('PTZ Pro 2', function (error, result) {
if (error) throw error;
console.log(result);
});
Available functions:
getCameraZoomInfo(name, callback),
moveLeft(name, callback),
moveRight(name, callback),
moveUp(name, callback),
moveDown(name, callback),
zoomIn(name, callback),
zoomOut(name, callback)