camstreamerlib 4.0.37 → 5.0.0-20ab5c4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -2
- package/cjs/CamOverlayAPI.d.ts +204 -204
- package/cjs/CamStreamerAPI.d.ts +311 -311
- package/cjs/CamStreamerAPI.js +1 -1
- package/cjs/CamSwitcherAPI.d.ts +32 -31
- package/cjs/CamSwitcherAPI.js +2 -0
- package/cjs/PlaneTrackerAPI.d.ts +25 -28
- package/cjs/VapixAPI.d.ts +15 -15
- package/cjs/VapixAPI.js +2 -2
- package/cjs/bin/CreatePackage.js +17 -7
- package/cjs/internal/transformers.d.ts +4 -4
- package/cjs/internal/utils.js +3 -3
- package/cjs/internal/versionCompare.d.ts +2 -2
- package/cjs/node/CamOverlayDrawingAPI.d.ts +0 -3
- package/cjs/node/CamOverlayPainter/Frame.d.ts +0 -1
- package/cjs/node/CamOverlayPainter/ResourceManager.d.ts +2 -2
- package/cjs/node/CamOverlayPainter/ResourceManager.js +17 -7
- package/cjs/node/CamScripterAPICameraEventsGenerator.d.ts +0 -1
- package/cjs/node/DefaultClient.d.ts +0 -2
- package/cjs/node/Digest.js +17 -7
- package/cjs/node/HttpRequestSender.d.ts +0 -2
- package/cjs/node/HttpRequestSender.test.js +17 -7
- package/cjs/node/HttpServer.d.ts +0 -2
- package/cjs/node/HttpServer.js +17 -7
- package/cjs/node/VapixEvents.js +1 -1
- package/cjs/node/WsClient.js +1 -1
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +320 -4097
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +12 -97
- package/cjs/types/CamOverlayAPI/pipSchema.js +2 -2
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
- package/cjs/types/CamScripterAPI.d.ts +11 -81
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +1095 -24193
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +36 -476
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/cjs/types/CamSwitcherAPI.d.ts +75 -700
- package/cjs/types/CamSwitcherAPI.js +1 -0
- package/cjs/types/GenetecAgent.d.ts +12 -132
- package/cjs/types/MilestoneAgent.d.ts +4 -46
- package/cjs/types/PlaneTrackerAPI.d.ts +265 -1205
- package/cjs/types/PlaneTrackerAPI.js +5 -5
- package/cjs/types/VapixAPI.d.ts +129 -1653
- package/cjs/types/VapixAPI.js +1 -1
- package/cjs/types/common.d.ts +11 -35
- package/cjs/types/common.js +1 -1
- package/cjs/types/ws/CamOverlayEvents.d.ts +9 -69
- package/cjs/types/ws/CamStreamerEvents.d.ts +19 -217
- package/cjs/types/ws/CamSwitcherEvents.d.ts +46 -452
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +361 -3522
- package/cjs/types/ws/PlaneTrackerEvents.js +1 -1
- package/cjs/web/WsClient.js +1 -1
- package/esm/CamStreamerAPI.js +1 -1
- package/esm/CamSwitcherAPI.js +2 -0
- package/esm/VapixAPI.js +2 -2
- package/esm/node/VapixEvents.js +1 -1
- package/esm/node/WsClient.js +1 -1
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
- package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +1 -1
- package/esm/types/CamOverlayAPI/pipSchema.js +2 -2
- package/esm/types/CamOverlayAPI/ptzCompassSchema.js +1 -1
- package/esm/types/CamStreamerAPI/youtubeSchema.js +1 -1
- package/esm/types/CamSwitcherAPI.js +1 -0
- package/esm/types/PlaneTrackerAPI.js +5 -5
- package/esm/types/VapixAPI.js +1 -1
- package/esm/types/common.js +1 -1
- package/esm/types/ws/PlaneTrackerEvents.js +1 -1
- package/esm/web/WsClient.js +1 -1
- package/package.json +106 -107
- package/types/CamOverlayAPI.d.ts +204 -204
- package/types/CamStreamerAPI.d.ts +311 -311
- package/types/CamSwitcherAPI.d.ts +32 -31
- package/types/PlaneTrackerAPI.d.ts +25 -28
- package/types/VapixAPI.d.ts +15 -15
- package/types/internal/transformers.d.ts +4 -4
- package/types/internal/versionCompare.d.ts +2 -2
- package/types/node/CamOverlayDrawingAPI.d.ts +0 -3
- package/types/node/CamOverlayPainter/Frame.d.ts +0 -1
- package/types/node/CamOverlayPainter/ResourceManager.d.ts +2 -2
- package/types/node/CamScripterAPICameraEventsGenerator.d.ts +0 -1
- package/types/node/DefaultClient.d.ts +0 -2
- package/types/node/HttpRequestSender.d.ts +0 -2
- package/types/node/HttpServer.d.ts +0 -2
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +320 -4097
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +12 -67
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -572
- package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +6 -59
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +6 -75
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +11 -74
- package/types/types/CamOverlayAPI/pipSchema.d.ts +12 -97
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +12 -71
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +8 -99
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +20 -254
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +5 -43
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +15 -94
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +5 -43
- package/types/types/CamScripterAPI.d.ts +11 -81
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +1095 -24193
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +32 -509
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +8 -143
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +32 -493
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +425 -7786
- package/types/types/CamStreamerAPI/windySchema.d.ts +36 -476
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +32 -487
- package/types/types/CamSwitcherAPI.d.ts +75 -700
- package/types/types/GenetecAgent.d.ts +12 -132
- package/types/types/MilestoneAgent.d.ts +4 -46
- package/types/types/PlaneTrackerAPI.d.ts +265 -1205
- package/types/types/VapixAPI.d.ts +129 -1653
- package/types/types/common.d.ts +11 -35
- package/types/types/ws/CamOverlayEvents.d.ts +9 -69
- package/types/types/ws/CamStreamerEvents.d.ts +19 -217
- package/types/types/ws/CamSwitcherEvents.d.ts +46 -452
- package/types/types/ws/PlaneTrackerEvents.d.ts +361 -3522
package/cjs/node/HttpServer.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.HttpServer = void 0;
|
|
27
37
|
const http = __importStar(require("http"));
|
package/cjs/node/VapixEvents.js
CHANGED
|
@@ -46,7 +46,7 @@ class VapixEvents extends eventemitter2_1.EventEmitter2 {
|
|
|
46
46
|
const topics = [];
|
|
47
47
|
const eventNames = this.eventNames();
|
|
48
48
|
for (const eventName of eventNames) {
|
|
49
|
-
if (!this.isReservedEventName(eventName)) {
|
|
49
|
+
if (typeof eventName === 'string' && !this.isReservedEventName(eventName)) {
|
|
50
50
|
const topic = {
|
|
51
51
|
topicFilter: eventName,
|
|
52
52
|
};
|
package/cjs/node/WsClient.js
CHANGED
|
@@ -25,7 +25,7 @@ class WsClient {
|
|
|
25
25
|
const protocol = tls ? 'wss' : 'ws';
|
|
26
26
|
this.address = `${protocol}://${host}:${port}${options.address}`;
|
|
27
27
|
this.digestAddress = options.address;
|
|
28
|
-
this.pingInterval = options.pingInterval ??
|
|
28
|
+
this.pingInterval = options.pingInterval ?? 30_000;
|
|
29
29
|
this.protocol = options.protocol;
|
|
30
30
|
this.wsOptions = {
|
|
31
31
|
auth: `${this.user}:${this.pass}`,
|