Initial commit
This commit is contained in:
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusFar.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusFar.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraFocusFar();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=focusFar.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusFar.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusFar.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"focusFar.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/focusFar.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,cAAc,EAAE,CAAC;QAC5C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusNear.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusNear.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraFocusNear();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=focusNear.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusNear.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusNear.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"focusNear.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/focusNear.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,eAAe,EAAE,CAAC;QAC7C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusStop.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusStop.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraFocusStop();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=focusStop.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusStop.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/focusStop.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"focusStop.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/focusStop.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,eAAe,EAAE,CAAC;QAC7C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainDown.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainDown.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraGainDown();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=gainDown.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainDown.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainDown.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"gainDown.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/gainDown.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,cAAc,EAAE,CAAC;QAC5C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainReset.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainReset.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraGainReset();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=gainReset.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainReset.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainReset.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"gainReset.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/gainReset.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,eAAe,EAAE,CAAC;QAC7C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainUp.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainUp.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraGainUp();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=gainUp.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainUp.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/gainUp.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"gainUp.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/gainUp.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,YAAY,EAAE,CAAC;QAC1C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/home.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/home.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTiltHome();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=home.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/home.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/home.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/home.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,iBAAiB,EAAE,CAAC;QAC/C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisDown.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisDown.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraIrisDown();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=irisDown.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisDown.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisDown.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"irisDown.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/irisDown.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,cAAc,EAAE,CAAC;QAC5C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisReset.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisReset.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraIrisReset();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=irisReset.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisReset.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisReset.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"irisReset.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/irisReset.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,eAAe,EAAE,CAAC;QAC7C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisUp.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisUp.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraIrisUp();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=irisUp.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisUp.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/irisUp.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"irisUp.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/irisUp.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,YAAY,EAAE,CAAC;QAC1C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
19
Backend/dist/Integrations/buildin/viscaOverIP/actions/panLeft.js
vendored
Normal file
19
Backend/dist/Integrations/buildin/viscaOverIP/actions/panLeft.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var connection = actionAPI.getConnection('viscaOverIpCamera', properties.connectionID);
|
||||
if (connection) {
|
||||
if (connection.instance != undefined) {
|
||||
var speed = connection.instance.internal != undefined && connection.instance.internal.pantiltSpeed != undefined
|
||||
? connection.instance.internal.pantiltSpeed
|
||||
: 10;
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTilt(-1 * speed, 0);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
}
|
||||
}
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=panLeft.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panLeft.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panLeft.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"panLeft.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/panLeft.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,mBAAmB,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;QACvF,IAAI,UAAU,EAAE;YACf,IAAI,UAAU,CAAC,QAAQ,IAAI,SAAS,EAAE;gBACrC,IAAI,KAAK,GACR,UAAU,CAAC,QAAQ,CAAC,QAAQ,IAAI,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,IAAI,SAAS;oBAClG,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY;oBAC3C,CAAC,CAAC,EAAE,CAAC;gBAEP,IAAI,OAAO,GAAG,4BAAY,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC;gBACxD,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;aAC5D;SACD;IACF,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
19
Backend/dist/Integrations/buildin/viscaOverIP/actions/panRight.js
vendored
Normal file
19
Backend/dist/Integrations/buildin/viscaOverIP/actions/panRight.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var connection = actionAPI.getConnection('viscaOverIpCamera', properties.connectionID);
|
||||
if (connection) {
|
||||
if (connection.instance != undefined) {
|
||||
var speed = connection.instance.internal != undefined && connection.instance.internal.pantiltSpeed != undefined
|
||||
? connection.instance.internal.pantiltSpeed
|
||||
: 10;
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTilt(1 * speed, 0);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
}
|
||||
}
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=panRight.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panRight.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panRight.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"panRight.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/panRight.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,mBAAmB,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;QACvF,IAAI,UAAU,EAAE;YACf,IAAI,UAAU,CAAC,QAAQ,IAAI,SAAS,EAAE;gBACrC,IAAI,KAAK,GACR,UAAU,CAAC,QAAQ,CAAC,QAAQ,IAAI,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,IAAI,SAAS;oBAClG,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY;oBAC3C,CAAC,CAAC,EAAE,CAAC;gBAEP,IAAI,OAAO,GAAG,4BAAY,CAAC,aAAa,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC;gBACvD,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;aAC5D;SACD;IACF,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
37
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltSpeed.js
vendored
Normal file
37
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltSpeed.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
exports.__esModule = true;
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
|
||||
var numberValue = properties.number != undefined ? properties.number : 10;
|
||||
if (connectionID != 'none') {
|
||||
var connection = actionAPI.getConnection('viscaOverIpCamera', connectionID);
|
||||
if (connection != undefined && connection.instance != undefined) {
|
||||
if (connection.instance.internal != undefined)
|
||||
connection.instance.internal = {};
|
||||
connection.instance.internal.pantiltSpeed = numberValue;
|
||||
status('Speed has been set', 'info');
|
||||
}
|
||||
else
|
||||
status('Not connected', 'error');
|
||||
}
|
||||
else
|
||||
status('No connection specified', 'error');
|
||||
});
|
||||
actionAPI.onOpenEditor(function (EditorAPI, properties) {
|
||||
var numberField = {
|
||||
id: 'number',
|
||||
name: 'Speed',
|
||||
type: 'select',
|
||||
value: properties.number != undefined ? properties.number : 1,
|
||||
values: []
|
||||
};
|
||||
for (var i = 0; i < 25; i++) {
|
||||
numberField.values.push({ id: String(i), text: String(i) });
|
||||
}
|
||||
simpleCommandHandler_1.simpleCommandEditor(EditorAPI, properties, [
|
||||
numberField
|
||||
]);
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=panTiltSpeed.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltSpeed.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltSpeed.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"panTiltSpeed.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/panTiltSpeed.ts"],"names":[],"mappings":";AAGA,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3F,IAAI,WAAW,GAAG,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QAE1E,IAAI,YAAY,IAAI,MAAM,EAAE;YAC3B,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;YAC5E,IAAI,UAAU,IAAI,SAAS,IAAI,UAAU,CAAC,QAAQ,IAAI,SAAS,EAAE;gBAChE,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,IAAI,SAAS;oBAAE,UAAU,CAAC,QAAQ,CAAC,QAAQ,GAAG,EAAE,CAAC;gBAEjF,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,GAAG,WAAW,CAAC;gBACxD,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;aACrC;;gBAAM,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;SACxC;;YAAM,MAAM,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,UAAC,SAAS,EAAE,UAAU;QAC5C,IAAI,WAAW,GAAoB;YAClC,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC7D,MAAM,EAAE,EAAE;SACV,CAAC;QACF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;YAC5B,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SAC5D;QACD,0CAAmB,CAAC,SAAS,EAAE,UAAU,EAAE;YAC1C,WAAW;SACX,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltStop.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltStop.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTilt(0, 0, 0x03, 0x03);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=panTiltStop.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltStop.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/panTiltStop.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"panTiltStop.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/panTiltStop.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAE3D,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetRecall.js
vendored
Normal file
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetRecall.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPresetRecall(properties.number);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(function (EditorAPI, properties) {
|
||||
return simpleCommandHandler_1.simpleCommandEditor(EditorAPI, properties, [
|
||||
{
|
||||
id: 'number',
|
||||
name: 'Preset Index',
|
||||
type: 'number',
|
||||
value: properties.number != undefined ? properties.number : 1
|
||||
}
|
||||
]);
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=presetRecall.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetRecall.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetRecall.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"presetRecall.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/presetRecall.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAG7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,kBAAkB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACjE,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,UAAC,SAAS,EAAE,UAAU;QAC5C,OAAA,0CAAmB,CAAC,SAAS,EAAE,UAAU,EAAE;YAC1C;gBACC,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;aAC7D;SACD,CAAC;IAPF,CAOE,CACF,CAAC;AACH,CAAC,CAAC"}
|
||||
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetReset.js
vendored
Normal file
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetReset.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPresetReset(properties.number);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(function (EditorAPI, properties) {
|
||||
return simpleCommandHandler_1.simpleCommandEditor(EditorAPI, properties, [
|
||||
{
|
||||
id: 'number',
|
||||
name: 'Preset Index',
|
||||
type: 'number',
|
||||
value: properties.number != undefined ? properties.number : 1
|
||||
}
|
||||
]);
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=presetReset.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetReset.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetReset.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"presetReset.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/presetReset.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAG7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,iBAAiB,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAChE,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,UAAC,SAAS,EAAE,UAAU;QAC5C,OAAA,0CAAmB,CAAC,SAAS,EAAE,UAAU,EAAE;YAC1C;gBACC,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;aAC7D;SACD,CAAC;IAPF,CAOE,CACF,CAAC;AACH,CAAC,CAAC"}
|
||||
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetSet.js
vendored
Normal file
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetSet.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPresetSet(properties.number);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(function (EditorAPI, properties) {
|
||||
simpleCommandHandler_1.simpleCommandEditor(EditorAPI, properties, [
|
||||
{
|
||||
id: 'number',
|
||||
name: 'Preset Index',
|
||||
type: 'number',
|
||||
value: properties.number != undefined ? properties.number : 1
|
||||
}
|
||||
]);
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=presetSet.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetSet.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/presetSet.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"presetSet.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/presetSet.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAG7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAC9D,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,UAAC,SAAS,EAAE,UAAU;QAC5C,0CAAmB,CAAC,SAAS,EAAE,UAAU,EAAE;YAC1C;gBACC,EAAE,EAAE,QAAQ;gBACZ,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;aAC7D;SACD,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/reset.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/reset.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTiltReset();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=reset.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/reset.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/reset.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"reset.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/reset.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,kBAAkB,EAAE,CAAC;QAChD,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterDown.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterDown.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraShutterDown();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=shutterDown.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterDown.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterDown.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"shutterDown.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/shutterDown.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,iBAAiB,EAAE,CAAC;QAC/C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterReset.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterReset.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraShutterReset();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=shutterReset.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterReset.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterReset.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"shutterReset.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/shutterReset.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,kBAAkB,EAAE,CAAC;QAChD,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterUp.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterUp.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraShutterUp();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=shutterUp.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterUp.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/shutterUp.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"shutterUp.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/shutterUp.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,eAAe,EAAE,CAAC;QAC7C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
19
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltDown.js
vendored
Normal file
19
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltDown.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var connection = actionAPI.getConnection('viscaOverIpCamera', properties.connectionID);
|
||||
if (connection) {
|
||||
if (connection.instance != undefined) {
|
||||
var speed = connection.instance.internal != undefined && connection.instance.internal.pantiltSpeed != undefined
|
||||
? connection.instance.internal.pantiltSpeed
|
||||
: 10;
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTilt(0, 1 * speed);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
}
|
||||
}
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=tiltDown.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltDown.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltDown.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tiltDown.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/tiltDown.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,mBAAmB,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;QACvF,IAAI,UAAU,EAAE;YACf,IAAI,UAAU,CAAC,QAAQ,IAAI,SAAS,EAAE;gBACrC,IAAI,KAAK,GACR,UAAU,CAAC,QAAQ,CAAC,QAAQ,IAAI,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,IAAI,SAAS;oBAClG,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY;oBAC3C,CAAC,CAAC,EAAE,CAAC;gBAEP,IAAI,OAAO,GAAG,4BAAY,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC;gBACvD,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;aAC5D;SACD;IACF,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltUp.js
vendored
Normal file
20
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltUp.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var connection = actionAPI.getConnection('viscaOverIpCamera', properties.connectionID);
|
||||
if (connection) {
|
||||
if (connection.instance != undefined) {
|
||||
var speed = connection.instance.internal != undefined && connection.instance.internal.pantiltSpeed != undefined
|
||||
? connection.instance.internal.pantiltSpeed
|
||||
: 10;
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTilt(0, -1 * speed);
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
}
|
||||
}
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
0;
|
||||
//# sourceMappingURL=tiltUp.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltUp.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/tiltUp.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tiltUp.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/tiltUp.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,mBAAmB,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;QACvF,IAAI,UAAU,EAAE;YACf,IAAI,UAAU,CAAC,QAAQ,IAAI,SAAS,EAAE;gBACrC,IAAI,KAAK,GACR,UAAU,CAAC,QAAQ,CAAC,QAAQ,IAAI,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,IAAI,SAAS;oBAClG,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY;oBAC3C,CAAC,CAAC,EAAE,CAAC;gBAEP,IAAI,OAAO,GAAG,4BAAY,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;gBACxD,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;aAC5D;SACD;IACF,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC;AACF,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomIn.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomIn.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraZoomIn();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=zoomIn.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomIn.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomIn.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zoomIn.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/zoomIn.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,YAAY,EAAE,CAAC;QAC1C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomOut.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomOut.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraZoomOut();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=zoomOut.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomOut.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomOut.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zoomOut.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/zoomOut.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,aAAa,EAAE,CAAC;QAC3C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomStop.js
vendored
Normal file
11
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomStop.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
var simpleCommandHandler_1 = require("../simpleCommandHandler");
|
||||
module.exports = function (actionAPI) {
|
||||
actionAPI.handle(function (properties, status) {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraZoomStop();
|
||||
simpleCommandHandler_1.simpleCommandHandle(actionAPI, command, properties, status);
|
||||
});
|
||||
actionAPI.onOpenEditor(simpleCommandHandler_1.simpleCommandEditor);
|
||||
};
|
||||
//# sourceMappingURL=zoomStop.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomStop.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/actions/zoomStop.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zoomStop.js","sourceRoot":"","sources":["../../../../../src/Integrations/buildin/viscaOverIP/actions/zoomStop.ts"],"names":[],"mappings":";AAAA,+CAA6C;AAE7C,gEAAmF;AAEnF,MAAM,CAAC,OAAO,GAAG,UAAC,SAAoB;IACrC,SAAS,CAAC,MAAM,CAAC,UAAC,UAAU,EAAE,MAA2D;QACxF,IAAI,OAAO,GAAG,4BAAY,CAAC,cAAc,EAAE,CAAC;QAC5C,0CAAmB,CAAC,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,YAAY,CAAC,0CAAmB,CAAC,CAAC;AAC7C,CAAC,CAAC"}
|
||||
18
Backend/dist/Integrations/buildin/viscaOverIP/integration.js
vendored
Normal file
18
Backend/dist/Integrations/buildin/viscaOverIP/integration.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
exports.__esModule = true;
|
||||
var Integration = {
|
||||
name: 'Visca over IP',
|
||||
description: 'Control PTZ cameras',
|
||||
main: require('./viscaOverIP'),
|
||||
connections: [
|
||||
{
|
||||
type: 'viscaOverIpCamera',
|
||||
name: 'Camera',
|
||||
fields: [
|
||||
{ id: 'ip', name: 'IP Address', type: 'text', value: '0.0.0.0' },
|
||||
{ id: 'port', name: 'Visca Port', type: 'number', value: '52381' }
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
module.exports = Integration;
|
||||
//# sourceMappingURL=integration.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/integration.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/integration.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/viscaOverIP/integration.ts"],"names":[],"mappings":";AAEA,IAAI,WAAW,GAAgB;IAC9B,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,qBAAqB;IAClC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC;IAE9B,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE;gBACP,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE;gBAChE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE;aAClE;SACD;KACD;CACD,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC"}
|
||||
53
Backend/dist/Integrations/buildin/viscaOverIP/simpleCommandHandler.js
vendored
Normal file
53
Backend/dist/Integrations/buildin/viscaOverIP/simpleCommandHandler.js
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
||||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
||||
to[j] = from[i];
|
||||
return to;
|
||||
};
|
||||
exports.__esModule = true;
|
||||
exports.simpleCommandEditor = exports.simpleCommandHandle = void 0;
|
||||
function simpleCommandHandle(actionAPI, command, properties, status) {
|
||||
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
|
||||
if (connectionID != 'none') {
|
||||
var connection = actionAPI.getConnection('viscaOverIpCamera', connectionID);
|
||||
if (connection.instance != undefined) {
|
||||
var camera = connection.instance.camera;
|
||||
status('Sending command', 'info');
|
||||
command.on('ack', function () {
|
||||
// status('Command acknowledged', 'info');
|
||||
});
|
||||
command.on('complete', function () {
|
||||
status('Command complete', 'info');
|
||||
});
|
||||
command.on('error', function (error) {
|
||||
status("Command error: " + error.message, 'info');
|
||||
});
|
||||
camera.sendCommand(command);
|
||||
}
|
||||
}
|
||||
else
|
||||
status('No connection specified', 'error');
|
||||
}
|
||||
exports.simpleCommandHandle = simpleCommandHandle;
|
||||
function simpleCommandEditor(editorAPI, properties, additionalFields) {
|
||||
if (additionalFields === void 0) { additionalFields = []; }
|
||||
var connectionID = properties.connectionID != undefined ? properties.connectionID : 'none';
|
||||
var connectionField = {
|
||||
id: 'connectionID',
|
||||
name: 'Connection',
|
||||
type: 'connection',
|
||||
connectionType: 'viscaOverIpCamera',
|
||||
value: connectionID
|
||||
};
|
||||
editorAPI.onFieldChanges(function (fields) {
|
||||
var fieldObject = editorAPI.tools.objectifyFieldsValues(fields);
|
||||
var saveObject = { connectionID: fieldObject.connectionID };
|
||||
for (var i = 0; i < additionalFields.length; i++)
|
||||
saveObject[additionalFields[i].id] = fieldObject[additionalFields[i].id];
|
||||
editorAPI.saveProperties(saveObject);
|
||||
});
|
||||
editorAPI.setFields(__spreadArray([
|
||||
connectionField
|
||||
], additionalFields));
|
||||
}
|
||||
exports.simpleCommandEditor = simpleCommandEditor;
|
||||
//# sourceMappingURL=simpleCommandHandler.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/simpleCommandHandler.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/simpleCommandHandler.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"simpleCommandHandler.js","sourceRoot":"","sources":["../../../../src/Integrations/buildin/viscaOverIP/simpleCommandHandler.ts"],"names":[],"mappings":";;;;;;;AAIA,SAAgB,mBAAmB,CAClC,SAAoB,EACpB,OAAqB,EACrB,UAAsB,EACtB,MAA2D;IAE3D,IAAI,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC;IAC3F,IAAI,YAAY,IAAI,MAAM,EAAE;QAC3B,IAAI,UAAU,GAAG,SAAS,CAAC,aAAa,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;QAE5E,IAAI,UAAU,CAAC,QAAQ,IAAI,SAAS,EAAE;YACrC,IAAI,MAAM,GAAgB,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC;YACrD,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;YAElC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;gBACjB,0CAA0C;YAC3C,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE;gBACtB,MAAM,CAAC,kBAAkB,EAAE,MAAM,C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BAAgB,EAClB,CAAC;AACJ,CAAC;AA7BD,kDA6BC"}
|
||||
64
Backend/dist/Integrations/buildin/viscaOverIP/viscaOverIP.js
vendored
Normal file
64
Backend/dist/Integrations/buildin/viscaOverIP/viscaOverIP.js
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
exports.__esModule = true;
|
||||
var visca_over_ip_1 = require("visca-over-ip");
|
||||
module.exports = function (api) {
|
||||
//Register a action
|
||||
api.registerAction('home', 'Go to home position', require('./actions/home'));
|
||||
api.registerAction('reset', 'Reset/Calibrate', require('./actions/reset'));
|
||||
api.registerAction('gainDown', 'Gain down', require('./actions/gainDown'));
|
||||
api.registerAction('gainUp', 'Gain up', require('./actions/gainUp'));
|
||||
api.registerAction('gainReset', 'Gain reset', require('./actions/gainReset'));
|
||||
api.registerAction('irisDown', 'Iris down', require('./actions/irisDown'));
|
||||
api.registerAction('irisUp', 'Iris up', require('./actions/irisUp'));
|
||||
api.registerAction('irisReset', 'Iris reset', require('./actions/irisReset'));
|
||||
api.registerAction('shutterDown', 'Shutter down', require('./actions/shutterDown'));
|
||||
api.registerAction('shutterUp', 'Shutter up', require('./actions/shutterUp'));
|
||||
api.registerAction('shutterReset', 'Shutter reset', require('./actions/shutterReset'));
|
||||
api.registerAction('zoomIn', 'Zoom in', require('./actions/zoomIn'));
|
||||
api.registerAction('zoomOut', 'Zoom out', require('./actions/zoomOut'));
|
||||
api.registerAction('zoomStop', 'Zoom stop', require('./actions/zoomStop'));
|
||||
api.registerAction('presetRecall', 'Recall preset', require('./actions/presetRecall'));
|
||||
api.registerAction('presetSet', 'Set preset', require('./actions/presetSet'));
|
||||
api.registerAction('presetReset', 'Reset preset', require('./actions/presetReset'));
|
||||
api.registerAction('panLeft', 'Pan left', require('./actions/panLeft'));
|
||||
api.registerAction('panRight', 'Pan right', require('./actions/panRight'));
|
||||
api.registerAction('tiltUp', 'Tilt up', require('./actions/tiltUp'));
|
||||
api.registerAction('tiltDown', 'Tilt down', require('./actions/tiltDown'));
|
||||
api.registerAction('panTiltStop', 'Stop pan/tilt', require('./actions/panTiltStop'));
|
||||
api.registerAction('panTiltSpeed', 'Set pan/tilt speed', require('./actions/panTiltSpeed'));
|
||||
api.registerAction('focusFar', 'Focus far', require('./actions/focusFar'));
|
||||
api.registerAction('focusNear', 'Focus near', require('./actions/focusNear'));
|
||||
api.registerAction('focusStop', 'Focus stop', require('./actions/focusStop'));
|
||||
api.registerConnectionValidator('viscaOverIpCamera', function (ValidatorAPI) {
|
||||
if (ValidatorAPI.properties.ip != undefined) {
|
||||
if (ValidatorAPI.properties.port != undefined) {
|
||||
var camera = new visca_over_ip_1.ViscaCamera(ValidatorAPI.properties.ip, ValidatorAPI.properties.port);
|
||||
camera.on('error', console.log);
|
||||
camera.on('connected', function () {
|
||||
var canRespond = true;
|
||||
var responseTimeout;
|
||||
setTimeout(function () {
|
||||
var command = visca_over_ip_1.ViscaCommand.cameraPanTilt(0, 0);
|
||||
command.on('ack', function () {
|
||||
if (canRespond == true) {
|
||||
canRespond = false;
|
||||
ValidatorAPI.callback(true);
|
||||
ValidatorAPI.setInstance({ internal: { pantiltSpeed: 10 }, camera: camera });
|
||||
clearTimeout(responseTimeout);
|
||||
}
|
||||
});
|
||||
responseTimeout = setTimeout(function () {
|
||||
canRespond = false;
|
||||
ValidatorAPI.callback(false, 'Timeout reached');
|
||||
}, 10000);
|
||||
camera.sendCommand(command);
|
||||
}, 1000);
|
||||
});
|
||||
camera.on('error', function (error) {
|
||||
ValidatorAPI.callback(false, 'Unable to reach camera');
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=viscaOverIP.js.map
|
||||
1
Backend/dist/Integrations/buildin/viscaOverIP/viscaOverIP.js.map
vendored
Normal file
1
Backend/dist/Integrations/buildin/viscaOverIP/viscaOverIP.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"viscaOverIP.js","sourceRoot":"","sources":["../../../../src/Integrations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