camstreamerlib 4.0.0-beta.2 → 4.0.0-beta.4
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/cjs/CamOverlayAPI.js +176 -0
- package/cjs/CamOverlayDrawingAPI.js +235 -0
- package/cjs/CamOverlayPainter/Frame.js +301 -0
- package/{CamOverlayPainter → cjs/CamOverlayPainter}/Painter.d.ts +14 -3
- package/cjs/CamOverlayPainter/Painter.js +171 -0
- package/cjs/CamOverlayPainter/ResourceManager.js +46 -0
- package/cjs/CamScripterAPI.js +70 -0
- package/cjs/CamScripterAPICameraEventsGenerator.js +162 -0
- package/cjs/CamStreamerAPI.js +65 -0
- package/{CamSwitcherAPI.d.ts → cjs/CamSwitcherAPI.d.ts} +3 -3
- package/cjs/CamSwitcherAPI.js +350 -0
- package/{CamSwitcherEvents.d.ts → cjs/CamSwitcherEvents.d.ts} +1 -1
- package/cjs/CamSwitcherEvents.js +67 -0
- package/cjs/CreatePackage.js +106 -0
- package/{VapixAPI.d.ts → cjs/VapixAPI.d.ts} +9 -9
- package/cjs/VapixAPI.js +462 -0
- package/cjs/VapixEvents.js +88 -0
- package/cjs/errors/errors.js +79 -0
- package/cjs/events/AxisCameraStationEvents.js +48 -0
- package/cjs/events/GenetecAgent.js +123 -0
- package/cjs/index.d.ts +11 -0
- package/cjs/index.js +31 -0
- package/cjs/internal/Digest.js +42 -0
- package/cjs/internal/ProxyClient.js +44 -0
- package/{internal → cjs/internal}/common.d.ts +0 -1
- package/cjs/internal/common.js +27 -0
- package/cjs/internal/constants.js +4 -0
- package/cjs/internal/transformers.js +32 -0
- package/cjs/internal/utils.js +46 -0
- package/cjs/internal/versionCompare.js +53 -0
- package/cjs/node/DefaultClient.js +54 -0
- package/cjs/node/HttpRequestSender.js +89 -0
- package/cjs/node/HttpServer.js +96 -0
- package/cjs/node/WsClient.js +149 -0
- package/cjs/node/WsEventClient.js +22 -0
- package/cjs/node/index.d.ts +2 -0
- package/cjs/node/index.js +7 -0
- package/cjs/types/CamOverlayAPI.js +47 -0
- package/cjs/types/CamScripterAPI.js +20 -0
- package/cjs/types/CamStreamerAPI.js +28 -0
- package/cjs/types/CamSwitcherAPI.js +137 -0
- package/cjs/types/CamSwitcherEvents.js +62 -0
- package/{types → cjs/types}/VapixAPI.d.ts +40 -61
- package/cjs/types/VapixAPI.js +130 -0
- package/cjs/types/common.js +14 -0
- package/cjs/web/DefaultClient.js +20 -0
- package/cjs/web/WsClient.js +62 -0
- package/cjs/web/index.d.ts +2 -0
- package/cjs/web/index.js +7 -0
- package/esm/CamOverlayAPI.d.ts +31 -0
- package/esm/CamOverlayDrawingAPI.d.ts +86 -0
- package/{CamOverlayDrawingAPI.js → esm/CamOverlayDrawingAPI.js} +6 -3
- package/esm/CamOverlayPainter/Frame.d.ts +96 -0
- package/esm/CamOverlayPainter/Painter.d.ts +48 -0
- package/{CamOverlayPainter → esm/CamOverlayPainter}/Painter.js +4 -1
- package/esm/CamOverlayPainter/ResourceManager.d.ts +14 -0
- package/{CamOverlayPainter → esm/CamOverlayPainter}/ResourceManager.js +6 -10
- package/esm/CamScripterAPI.d.ts +19 -0
- package/esm/CamScripterAPICameraEventsGenerator.d.ts +74 -0
- package/{CamScripterAPICameraEventsGenerator.js → esm/CamScripterAPICameraEventsGenerator.js} +6 -3
- package/esm/CamStreamerAPI.d.ts +16 -0
- package/esm/CamSwitcherAPI.d.ts +48 -0
- package/{CamSwitcherAPI.js → esm/CamSwitcherAPI.js} +19 -23
- package/esm/CamSwitcherEvents.d.ts +18 -0
- package/{CamSwitcherEvents.js → esm/CamSwitcherEvents.js} +1 -1
- package/esm/CreatePackage.d.ts +1 -0
- package/esm/VapixAPI.d.ts +66 -0
- package/{VapixAPI.js → esm/VapixAPI.js} +20 -16
- package/esm/VapixEvents.d.ts +43 -0
- package/{VapixEvents.js → esm/VapixEvents.js} +3 -3
- package/esm/errors/errors.d.ts +34 -0
- package/esm/events/AxisCameraStationEvents.d.ts +9 -0
- package/esm/events/GenetecAgent.d.ts +174 -0
- package/esm/index.d.ts +11 -0
- package/esm/index.js +11 -0
- package/esm/internal/Digest.d.ts +4 -0
- package/{internal → esm/internal}/Digest.js +6 -6
- package/esm/internal/ProxyClient.d.ts +11 -0
- package/esm/internal/common.d.ts +39 -0
- package/{internal → esm/internal}/common.js +0 -3
- package/esm/internal/constants.d.ts +1 -0
- package/esm/internal/transformers.d.ts +5 -0
- package/esm/internal/utils.d.ts +11 -0
- package/esm/internal/versionCompare.d.ts +6 -0
- package/esm/node/DefaultClient.d.ts +15 -0
- package/{node → esm/node}/DefaultClient.js +1 -1
- package/esm/node/HttpRequestSender.d.ts +28 -0
- package/esm/node/HttpServer.d.ts +21 -0
- package/{node → esm/node}/HttpServer.js +1 -1
- package/esm/node/WsClient.d.ts +39 -0
- package/esm/node/WsEventClient.d.ts +13 -0
- package/esm/node/index.d.ts +2 -0
- package/esm/node/index.js +2 -0
- package/esm/types/CamOverlayAPI.d.ts +188 -0
- package/esm/types/CamScripterAPI.d.ts +67 -0
- package/esm/types/CamStreamerAPI.d.ts +139 -0
- package/esm/types/CamSwitcherAPI.d.ts +814 -0
- package/esm/types/CamSwitcherEvents.d.ts +491 -0
- package/esm/types/VapixAPI.d.ts +1683 -0
- package/{types → esm/types}/VapixAPI.js +10 -12
- package/esm/types/common.d.ts +37 -0
- package/esm/web/DefaultClient.d.ts +6 -0
- package/esm/web/WsClient.d.ts +13 -0
- package/esm/web/index.d.ts +2 -0
- package/esm/web/index.js +2 -0
- package/package.json +6 -5
- package/README.md +0 -97
- /package/{CamOverlayAPI.d.ts → cjs/CamOverlayAPI.d.ts} +0 -0
- /package/{CamOverlayDrawingAPI.d.ts → cjs/CamOverlayDrawingAPI.d.ts} +0 -0
- /package/{CamOverlayPainter → cjs/CamOverlayPainter}/Frame.d.ts +0 -0
- /package/{CamOverlayPainter → cjs/CamOverlayPainter}/ResourceManager.d.ts +0 -0
- /package/{CamScripterAPI.d.ts → cjs/CamScripterAPI.d.ts} +0 -0
- /package/{CamScripterAPICameraEventsGenerator.d.ts → cjs/CamScripterAPICameraEventsGenerator.d.ts} +0 -0
- /package/{CamStreamerAPI.d.ts → cjs/CamStreamerAPI.d.ts} +0 -0
- /package/{CreatePackage.d.ts → cjs/CreatePackage.d.ts} +0 -0
- /package/{VapixEvents.d.ts → cjs/VapixEvents.d.ts} +0 -0
- /package/{errors → cjs/errors}/errors.d.ts +0 -0
- /package/{events → cjs/events}/AxisCameraStationEvents.d.ts +0 -0
- /package/{events → cjs/events}/GenetecAgent.d.ts +0 -0
- /package/{internal → cjs/internal}/Digest.d.ts +0 -0
- /package/{internal → cjs/internal}/ProxyClient.d.ts +0 -0
- /package/{internal → cjs/internal}/constants.d.ts +0 -0
- /package/{internal → cjs/internal}/transformers.d.ts +0 -0
- /package/{internal → cjs/internal}/utils.d.ts +0 -0
- /package/{internal → cjs/internal}/versionCompare.d.ts +0 -0
- /package/{node → cjs/node}/DefaultClient.d.ts +0 -0
- /package/{node → cjs/node}/HttpRequestSender.d.ts +0 -0
- /package/{node → cjs/node}/HttpServer.d.ts +0 -0
- /package/{node → cjs/node}/WsClient.d.ts +0 -0
- /package/{node → cjs/node}/WsEventClient.d.ts +0 -0
- /package/{types → cjs/types}/CamOverlayAPI.d.ts +0 -0
- /package/{types → cjs/types}/CamScripterAPI.d.ts +0 -0
- /package/{types → cjs/types}/CamStreamerAPI.d.ts +0 -0
- /package/{types → cjs/types}/CamSwitcherAPI.d.ts +0 -0
- /package/{types/CamswitcherEvents.d.ts → cjs/types/CamSwitcherEvents.d.ts} +0 -0
- /package/{types → cjs/types}/common.d.ts +0 -0
- /package/{web → cjs/web}/DefaultClient.d.ts +0 -0
- /package/{web → cjs/web}/WsClient.d.ts +0 -0
- /package/{CamOverlayAPI.js → esm/CamOverlayAPI.js} +0 -0
- /package/{CamOverlayPainter → esm/CamOverlayPainter}/Frame.js +0 -0
- /package/{CamScripterAPI.js → esm/CamScripterAPI.js} +0 -0
- /package/{CamStreamerAPI.js → esm/CamStreamerAPI.js} +0 -0
- /package/{CreatePackage.js → esm/CreatePackage.js} +0 -0
- /package/{errors → esm/errors}/errors.js +0 -0
- /package/{events → esm/events}/AxisCameraStationEvents.js +0 -0
- /package/{events → esm/events}/GenetecAgent.js +0 -0
- /package/{internal → esm/internal}/ProxyClient.js +0 -0
- /package/{internal → esm/internal}/constants.js +0 -0
- /package/{internal → esm/internal}/transformers.js +0 -0
- /package/{internal → esm/internal}/utils.js +0 -0
- /package/{internal → esm/internal}/versionCompare.js +0 -0
- /package/{node → esm/node}/HttpRequestSender.js +0 -0
- /package/{node → esm/node}/WsClient.js +0 -0
- /package/{node → esm/node}/WsEventClient.js +0 -0
- /package/{types → esm/types}/CamOverlayAPI.js +0 -0
- /package/{types → esm/types}/CamScripterAPI.js +0 -0
- /package/{types → esm/types}/CamStreamerAPI.js +0 -0
- /package/{types → esm/types}/CamSwitcherAPI.js +0 -0
- /package/{types/CamswitcherEvents.js → esm/types/CamSwitcherEvents.js} +0 -0
- /package/{types → esm/types}/common.js +0 -0
- /package/{web → esm/web}/DefaultClient.js +0 -0
- /package/{web → esm/web}/WsClient.js +0 -0
|
@@ -96,13 +96,15 @@ const audioDeviceFromRequestSchema = z.object({
|
|
|
96
96
|
});
|
|
97
97
|
export const audioDeviceRequestSchema = z.object({ devices: z.array(audioDeviceFromRequestSchema) });
|
|
98
98
|
export const maxFpsResponseSchema = z.object({
|
|
99
|
-
data: z
|
|
99
|
+
data: z
|
|
100
|
+
.array(z.object({
|
|
100
101
|
channel: z.number(),
|
|
101
102
|
captureMode: z.array(z.object({
|
|
102
103
|
enabled: z.boolean(),
|
|
103
104
|
maxFPS: z.number().optional(),
|
|
104
105
|
})),
|
|
105
|
-
}))
|
|
106
|
+
}))
|
|
107
|
+
.optional(),
|
|
106
108
|
});
|
|
107
109
|
export const dateTimeinfoSchema = z.object({
|
|
108
110
|
data: z.object({
|
|
@@ -115,15 +117,11 @@ export const dateTimeinfoSchema = z.object({
|
|
|
115
117
|
});
|
|
116
118
|
export const audioSampleRatesResponseSchema = z.object({
|
|
117
119
|
data: z.object({
|
|
118
|
-
encoders: z
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
AAC: z.array(audioSampleRatesSchema),
|
|
125
|
-
aac: z.undefined(),
|
|
126
|
-
}),
|
|
127
|
-
]),
|
|
120
|
+
encoders: z
|
|
121
|
+
.object({
|
|
122
|
+
aac: z.array(audioSampleRatesSchema),
|
|
123
|
+
AAC: z.array(audioSampleRatesSchema),
|
|
124
|
+
})
|
|
125
|
+
.partial(),
|
|
128
126
|
}),
|
|
129
127
|
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const audioChannelSchema: z.ZodUnion<[z.ZodLiteral<"mono">, z.ZodLiteral<"stereo">]>;
|
|
3
|
+
export type TAudioChannel = z.infer<typeof audioChannelSchema>;
|
|
4
|
+
export declare const audioChannelCountSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>;
|
|
5
|
+
export type TAudioChannelCount = z.infer<typeof audioChannelCountSchema>;
|
|
6
|
+
export declare const h264ProfileSchema: z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>;
|
|
7
|
+
export type TH264Profile = z.infer<typeof h264ProfileSchema>;
|
|
8
|
+
export declare const storageTypeSchema: z.ZodUnion<[z.ZodLiteral<"SD_DISK">, z.ZodLiteral<"FLASH">]>;
|
|
9
|
+
export type TStorageType = z.infer<typeof storageTypeSchema>;
|
|
10
|
+
export declare const networkCameraListSchema: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
ip: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
ip: string;
|
|
15
|
+
name: string;
|
|
16
|
+
}, {
|
|
17
|
+
ip: string;
|
|
18
|
+
name: string;
|
|
19
|
+
}>, "many">;
|
|
20
|
+
export type TNetworkCamera = z.infer<typeof networkCameraListSchema>[number];
|
|
21
|
+
export declare const keyboardShortcutSchema: z.ZodNullable<z.ZodString>;
|
|
22
|
+
export declare const keyboardShortcutsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
|
|
23
|
+
export type TKeyboardShortcut = z.infer<typeof keyboardShortcutSchema>;
|
|
24
|
+
export type TKeyboardShortcuts = z.infer<typeof keyboardShortcutsSchema>;
|
|
25
|
+
export type TProxyParam = {
|
|
26
|
+
ip: string;
|
|
27
|
+
mdnsName: string;
|
|
28
|
+
port: number;
|
|
29
|
+
user: string;
|
|
30
|
+
pass: string;
|
|
31
|
+
} | null;
|
|
32
|
+
export type TCameraImageConfig = {
|
|
33
|
+
camera?: string;
|
|
34
|
+
resolution?: string;
|
|
35
|
+
compression?: number;
|
|
36
|
+
overlays?: 'off';
|
|
37
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { IClient, TParameters } from '../internal/common';
|
|
3
|
+
export declare class DefaultClient implements IClient {
|
|
4
|
+
get(url: string, parameters?: TParameters, headers?: Record<string, string>): Promise<Response>;
|
|
5
|
+
post(url: string, data: string | Buffer | FormData, parameters?: TParameters, headers?: Record<string, string>): Promise<Response>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class WsClient {
|
|
2
|
+
private getUrl;
|
|
3
|
+
private getAuthToken;
|
|
4
|
+
isDestroyed: boolean;
|
|
5
|
+
private ws;
|
|
6
|
+
private restartTimeout;
|
|
7
|
+
constructor(getUrl: () => string, getAuthToken: () => Promise<string>);
|
|
8
|
+
init(): void;
|
|
9
|
+
send: (msg: string) => void;
|
|
10
|
+
onmessage: (_: MessageEvent) => void;
|
|
11
|
+
destroy: () => void;
|
|
12
|
+
private destroyWebsocket;
|
|
13
|
+
}
|
package/esm/web/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camstreamerlib",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.4",
|
|
4
4
|
"description": "Helper library for CamStreamer ACAP applications.",
|
|
5
5
|
"prettier": "@camstreamer/prettier-config",
|
|
6
|
-
"type": "module",
|
|
7
6
|
"dependencies": {
|
|
8
7
|
"adm-zip": "^0.5.9",
|
|
9
8
|
"eventemitter2": "^5.0.1",
|
|
@@ -41,9 +40,11 @@
|
|
|
41
40
|
},
|
|
42
41
|
"scripts": {
|
|
43
42
|
"clean": "rimraf dist/*",
|
|
44
|
-
"build": "npm-run-all clean
|
|
45
|
-
"
|
|
46
|
-
"
|
|
43
|
+
"build": "npm-run-all clean build:cjs build:esm copyPackage",
|
|
44
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
45
|
+
"build:esm": "tsc --project tsconfig.esm.json",
|
|
46
|
+
"copyPackage": "cp -f LICENSE dist/ && cp -f package.json dist/",
|
|
47
|
+
"prepublish": "npm run build",
|
|
47
48
|
"lint": "eslint \"src/**/*.ts\"",
|
|
48
49
|
"lint:fix": "eslint \"src/**/*.ts\" --fix",
|
|
49
50
|
"pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",
|
package/README.md
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
# CamStreamerLib - BETA
|
|
2
|
-
|
|
3
|
-
**This is beta version of CamStreamerLib v4, dont use it on production. Is going to be changed significantly.**
|
|
4
|
-
|
|
5
|
-
Node.js helper library for CamStreamer ACAP applications.
|
|
6
|
-
|
|
7
|
-
The library is primarily developed for the CamScripter ACAP application running directly in Axis cameras.
|
|
8
|
-
Examples of CamScripter packages can be found at https://github.com/CamStreamer/CamScripterApp_examples
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
npm install camstreamerlib
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
# Documentation for Node.js modules
|
|
17
|
-
|
|
18
|
-
- [HttpServer](doc/HttpServer.md) is a module for processing HTTP requests in your scripts. It also automatically serves up the content from html directory or you can register paths which you can process by your own (e.g. http://$CAMERA_IP/local/camscripter/proxy/$MY_PACKAGE_NAME/control.cgi).
|
|
19
|
-
|
|
20
|
-
- [CameraVapix](doc/CameraVapix.md) is a module to access Axis camera VAPIX interface.
|
|
21
|
-
|
|
22
|
-
- [CamStreamerAPI](doc/CamStreamerAPI.md) is a module for easy control of video streaming in the CamStreamer ACAP application (RTMP, HLS, SRT and MPEG-TS protocols).
|
|
23
|
-
|
|
24
|
-
- [CamOverlayAPI](doc/CamOverlayAPI.md) is a module to access CamOverlay HTTP interface.
|
|
25
|
-
|
|
26
|
-
- [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) is a module for easy control of CamOverlay drawing API. For more details on supported video overlay drawing functions see https://camstreamer.com/camoverlay-api1
|
|
27
|
-
|
|
28
|
-
- [CamOverlayPainter/](doc/CamOverlayPainter.md) contains three modules which makes easier to use CamOverlayDrawingAPI.
|
|
29
|
-
|
|
30
|
-
- [CamScripterAPICameraEventsGenerator](doc/CamScripterAPICameraEventsGenerator.md) is a module which allows generating events on an Axis camera. These events can be used for triggers in the Axis camera rule engine (events/actions). It is also an easy way how to integrate events and metadata in VMS systems which support Axis camera events.
|
|
31
|
-
|
|
32
|
-
- [CamSwitcherEvents](doc/CamSwitcherEvents.md) is a module which allows receiving events from CamSwitcher ACAP application.
|
|
33
|
-
|
|
34
|
-
- [VapixEvents](doc/VapixEvents.md) is a module which allows receiving camera events from the VAPIX API.
|
|
35
|
-
|
|
36
|
-
- [GenetecAgent](doc/GenetecAgent.md) is a module which allows receiving and sending data to Genetec VMS.
|
|
37
|
-
|
|
38
|
-
## For Developers
|
|
39
|
-
|
|
40
|
-
### Publishing to npm repository
|
|
41
|
-
|
|
42
|
-
1. Update version in package.json and push it
|
|
43
|
-
2. Create git tag e.g. v1.2.4
|
|
44
|
-
|
|
45
|
-
- `git tag v1.2.4`
|
|
46
|
-
- `git push --tags`
|
|
47
|
-
|
|
48
|
-
3. Publish new version to npm
|
|
49
|
-
|
|
50
|
-
- `npm publish ./dist`
|
|
51
|
-
|
|
52
|
-
4. Edit GitHub release form.
|
|
53
|
-
|
|
54
|
-
### Preparing a package to upload to CamScripter
|
|
55
|
-
|
|
56
|
-
If you want to create your own package and upload it to CamScripter App, you can use the script CreatePackage. It creates a zip file which contains all required files and directories in your package folder. The script accepts source code written either in JavaScript or TypeScript if the package has the correct structure (more information in https://github.com/CamStreamer/CamScripterApp_examples/#readme). To include this script in your package add the following lines in the file package.json:
|
|
57
|
-
|
|
58
|
-
```json
|
|
59
|
-
"scripts": {
|
|
60
|
-
"create-package": "node node_modules/camstreamerlib/CreatePackage.js"
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
By default, the zipped package does not contain node_modules directory. If you want to include it (required when uploading to CamScripter App on Axis camera), add `-includeNodeModules` or `-i` parameter.
|
|
65
|
-
|
|
66
|
-
If you need to exclude a file or directory add `-exlude=` or `-e=` parameter with comma separated list.
|
|
67
|
-
|
|
68
|
-
The zip package is created in the current directory. You can choose different location with the `-where=` or `-w=` option.
|
|
69
|
-
|
|
70
|
-
```json
|
|
71
|
-
"scripts": {
|
|
72
|
-
"create-package": "node node_modules/camstreamerlib/CreatePackage.js -i -e=react"
|
|
73
|
-
}
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### Breaking changes when moving from version 1.\*.\* to 2.\*.\*
|
|
77
|
-
|
|
78
|
-
- Renamed file HTTPRequest.ts to HttpRequest.ts
|
|
79
|
-
- Removed deprecated protocol attribute from all options objects (use tls instead).
|
|
80
|
-
- Removed RTSP
|
|
81
|
-
> Previously CameraVapix.ts supported both WebSocket and RTSP.
|
|
82
|
-
> Starting with version 2.0.0, it supports WebSocket only.
|
|
83
|
-
- ServiceID shouldn't be passed to CamOverlayAPI by the options object. Pass it as a parameter.
|
|
84
|
-
- Renamed CamOverlayDrawingAPI event msg to message.
|
|
85
|
-
- Drawing services extracted from CamOverlayAPI.ts to a separate file.
|
|
86
|
-
> Please read [CamOverlayAPI](doc/CamOverlayAPI.md) and [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) for more information.
|
|
87
|
-
|
|
88
|
-
### Breaking changes when moving from version 2.\*.\* to 3.\*.\*
|
|
89
|
-
|
|
90
|
-
- CamStreamerlib requiers Node.js version 18 or higher.
|
|
91
|
-
- CamOverlayDrawingAPI tries to reconnect when the websocket is closed. You don't have to do it manually.
|
|
92
|
-
> However, events `open` and `close` are still emitted in case you need to react to them.
|
|
93
|
-
- Files common.ts, Digest.ts, HttpRequest.ts and WsClient.ts moved to a folder internal.
|
|
94
|
-
- Removed function httpRequest(). Use sendRequest() instead. It uses the same interface except for the "noWaitForData" parameter.
|
|
95
|
-
> It returns (Response object)[https://developer.mozilla.org/en-US/docs/Web/API/Response] which doesn't contain data by default.
|
|
96
|
-
> If you need to wait for data, you can call for example the function `await res.text()`.
|
|
97
|
-
> This change affects the function `vapixGet` from (CameraVapix)[doc/CameraVapix.md] too.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{CamScripterAPICameraEventsGenerator.d.ts → cjs/CamScripterAPICameraEventsGenerator.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|