@camera.ui/browser 0.0.74 → 0.0.75
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/dist/bundle.js +1 -1
- package/dist/types/packages/client/browser/src/types.d.ts +1 -1
- package/dist/types/server/src/api/controllers/cameras.controller.d.ts +5 -5
- package/dist/types/server/src/api/database/types.d.ts +22 -5
- package/dist/types/server/src/api/schemas/cameras.schema.d.ts +192 -158
- package/dist/types/server/src/api/schemas/go2rtc.schema.d.ts +6 -6
- package/dist/types/server/src/api/schemas/users.schema.d.ts +2 -2
- package/dist/types/server/src/api/services/cameras.service.d.ts +4 -3
- package/dist/types/server/src/api/types/index.d.ts +0 -5
- package/dist/types/server/src/api.d.ts +1 -1
- package/dist/types/server/src/camera/{controller/index.d.ts → controller.d.ts} +7 -6
- package/dist/types/server/src/camera/{cameraDevice.d.ts → device.d.ts} +1 -1
- package/dist/types/server/src/camera/index.d.ts +10 -12
- package/dist/types/server/src/camera/polygon.d.ts +3 -0
- package/dist/types/server/src/camera/streaming/peer-connection.d.ts +2 -2
- package/dist/types/server/src/camera/streaming/streaming-session.d.ts +2 -2
- package/dist/types/server/src/camera/streaming/webrtc-connection.d.ts +2 -2
- package/dist/types/server/src/camera/{controller/types.d.ts → types.d.ts} +12 -8
- package/dist/types/server/src/camera/videoFrame.d.ts +18 -0
- package/dist/types/server/src/decoder/index.d.ts +1 -12
- package/dist/types/server/src/decoder/types.d.ts +14 -5
- package/dist/types/server/src/decoder/worker.d.ts +6 -14
- package/dist/types/server/src/nats/constants.d.ts +0 -1
- package/dist/types/server/src/nats/index.d.ts +2 -2
- package/dist/types/server/src/nats/proxy/cameraDevice.d.ts +1 -6
- package/dist/types/server/src/nats/proxy/deviceManager.d.ts +1 -1
- package/dist/types/server/src/nats/server.d.ts +4 -2
- package/dist/types/server/src/nats/types.d.ts +5 -9
- package/dist/types/server/src/nats/websocket.d.ts +1 -1
- package/dist/types/server/src/plugins/base.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/api.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/proxy/cameraDevice.d.ts +17 -16
- package/dist/types/server/src/polyglot/node/plugins/proxy/deviceManager.d.ts +9 -7
- package/dist/types/server/src/polyglot/node/plugins/proxy/pluginsManager.d.ts +6 -5
- package/dist/types/server/src/polyglot/node/plugins/proxy/queue.d.ts +1 -1
- package/dist/types/server/src/polyglot/node/plugins/proxy/systemManager.d.ts +6 -5
- package/dist/types/shared/types/index.d.ts +2 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CameraDevice } from '../../../../camera/
|
|
1
|
+
import { CameraDevice } from '../../../../camera/device.js';
|
|
2
2
|
import type { Camera } from '../../../../api/database/types.js';
|
|
3
|
-
import type { CameraSource, SetValues } from '../../../../camera/
|
|
3
|
+
import type { CameraSource, SetValues } from '../../../../camera/types.js';
|
|
4
4
|
import type { VideoFrame } from '../../../../decoder/types.js';
|
|
5
5
|
import type { IceServer } from '../../../../services/config/types.js';
|
|
6
6
|
import type { PluginAPI } from '../api.js';
|
|
@@ -8,25 +8,26 @@ import type { PluginLogger } from '../logger.js';
|
|
|
8
8
|
export declare class CameraDeviceProxy extends CameraDevice {
|
|
9
9
|
private api;
|
|
10
10
|
private initialized;
|
|
11
|
-
private publisher;
|
|
12
|
-
private client;
|
|
13
|
-
private cameraSubscriber;
|
|
14
|
-
private cameraPluginSubscriber;
|
|
15
|
-
private signalingSubscriber;
|
|
16
|
-
private frameSubscriber?;
|
|
17
|
-
private activeRequests;
|
|
18
|
-
private messageQueue;
|
|
19
|
-
private auth;
|
|
20
|
-
private pluginID;
|
|
21
|
-
private pluginName;
|
|
22
11
|
private clientSubject;
|
|
23
12
|
private cameraSubscriberSubject;
|
|
24
13
|
private cameraPluginSubscriberSubject;
|
|
25
14
|
private frameSubject;
|
|
26
15
|
private signalingSubject;
|
|
27
16
|
private signalingTargetSubject;
|
|
17
|
+
private publisher?;
|
|
18
|
+
private client?;
|
|
19
|
+
private cameraSubscriber?;
|
|
20
|
+
private cameraPluginSubscriber?;
|
|
21
|
+
private signalingSubscriber?;
|
|
22
|
+
private frameSubscriber?;
|
|
23
|
+
private activeRequests;
|
|
24
|
+
private messageQueue?;
|
|
25
|
+
private auth;
|
|
26
|
+
private proxyPort;
|
|
27
|
+
private pluginID;
|
|
28
|
+
private pluginName;
|
|
28
29
|
get sources(): CameraSource[];
|
|
29
|
-
constructor(api: PluginAPI, logger: PluginLogger, camera: Camera, pluginId: string, pluginName: string, auth: {
|
|
30
|
+
constructor(api: PluginAPI, logger: PluginLogger, camera: Camera, pluginId: string, pluginName: string, proxyPort: number, auth: {
|
|
30
31
|
user: string;
|
|
31
32
|
pass: string;
|
|
32
33
|
});
|
|
@@ -40,8 +41,8 @@ export declare class CameraDeviceProxy extends CameraDevice {
|
|
|
40
41
|
updateState<T extends keyof SetValues>(stateName: T, eventData: SetValues[T]): Promise<void>;
|
|
41
42
|
refreshStates(): Promise<void>;
|
|
42
43
|
cleanup(): Promise<void>;
|
|
43
|
-
private
|
|
44
|
-
private
|
|
44
|
+
private connectToDecoder;
|
|
45
|
+
private disconnectFromDecoder;
|
|
45
46
|
private requestHandler;
|
|
46
47
|
private listenToMessages;
|
|
47
48
|
private listenToSignalingMessages;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { EventEmitter } from 'node:events';
|
|
3
3
|
import { CameraDeviceProxy } from './cameraDevice.js';
|
|
4
|
-
import type { CameraDevice } from '../../../../camera/
|
|
5
|
-
import type { CameraConfig } from '../../../../camera/
|
|
4
|
+
import type { CameraDevice } from '../../../../camera/device.js';
|
|
5
|
+
import type { CameraConfig } from '../../../../camera/types.js';
|
|
6
6
|
import type { DeviceManagerProxyEventCallbacks, DeviceManagerProxyMethods } from '../../../../nats/types.js';
|
|
7
7
|
import type { PluginAPI } from '../api.js';
|
|
8
8
|
import type { PluginLogger } from '../logger.js';
|
|
@@ -17,17 +17,18 @@ export declare class DeviceManager extends EventEmitter implements DeviceManager
|
|
|
17
17
|
private api;
|
|
18
18
|
private logger;
|
|
19
19
|
private initialized;
|
|
20
|
-
private publisher
|
|
21
|
-
private client
|
|
22
|
-
private subscriber
|
|
23
|
-
private messageQueue
|
|
20
|
+
private publisher?;
|
|
21
|
+
private client?;
|
|
22
|
+
private subscriber?;
|
|
23
|
+
private messageQueue?;
|
|
24
24
|
private auth;
|
|
25
|
+
private proxyPort;
|
|
25
26
|
private pluginId;
|
|
26
27
|
private pluginName;
|
|
27
28
|
private clientSubject;
|
|
28
29
|
private subscriberSubject;
|
|
29
30
|
private devices;
|
|
30
|
-
constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, auth: {
|
|
31
|
+
constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, proxyPort: number, auth: {
|
|
31
32
|
user: string;
|
|
32
33
|
pass: string;
|
|
33
34
|
});
|
|
@@ -40,6 +41,7 @@ export declare class DeviceManager extends EventEmitter implements DeviceManager
|
|
|
40
41
|
emit(): boolean;
|
|
41
42
|
configureCameras(cameraDevices: CameraDeviceProxy[]): void;
|
|
42
43
|
private requestHandler;
|
|
44
|
+
private emitEvent;
|
|
43
45
|
private listenToMessages;
|
|
44
46
|
private onRequest;
|
|
45
47
|
private addOrGetCamera;
|
|
@@ -14,16 +14,17 @@ export declare class PluginsManager extends EventEmitter implements PluginsManag
|
|
|
14
14
|
private api;
|
|
15
15
|
private logger;
|
|
16
16
|
private initialized;
|
|
17
|
-
private publisher
|
|
18
|
-
private client
|
|
19
|
-
private subscriber
|
|
20
|
-
private messageQueue
|
|
17
|
+
private publisher?;
|
|
18
|
+
private client?;
|
|
19
|
+
private subscriber?;
|
|
20
|
+
private messageQueue?;
|
|
21
21
|
private auth;
|
|
22
|
+
private proxyPort;
|
|
22
23
|
private pluginId;
|
|
23
24
|
private pluginName;
|
|
24
25
|
private clientSubject;
|
|
25
26
|
private subscriberSubject;
|
|
26
|
-
constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, auth: {
|
|
27
|
+
constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, proxyPort: number, auth: {
|
|
27
28
|
user: string;
|
|
28
29
|
pass: string;
|
|
29
30
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NatsConnection, Subscription } from 'nats';
|
|
2
|
-
import type { BaseLogger } from '../../../../camera/
|
|
2
|
+
import type { BaseLogger } from '../../../../camera/types.js';
|
|
3
3
|
import type { ProxyMessageStructure } from '../../../../nats/types.js';
|
|
4
4
|
export declare class ClientMessageQueue {
|
|
5
5
|
private logger;
|
|
@@ -14,16 +14,17 @@ export declare class SystemManager extends EventEmitter implements SystemManager
|
|
|
14
14
|
private api;
|
|
15
15
|
private logger;
|
|
16
16
|
private initialized;
|
|
17
|
-
private publisher
|
|
18
|
-
private client
|
|
19
|
-
private subscriber
|
|
20
|
-
private messageQueue
|
|
17
|
+
private publisher?;
|
|
18
|
+
private client?;
|
|
19
|
+
private subscriber?;
|
|
20
|
+
private messageQueue?;
|
|
21
21
|
private auth;
|
|
22
|
+
private proxyPort;
|
|
22
23
|
private pluginId;
|
|
23
24
|
private pluginName;
|
|
24
25
|
private clientSubject;
|
|
25
26
|
private subscriberSubject;
|
|
26
|
-
constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, auth: {
|
|
27
|
+
constructor(api: PluginAPI, logger: PluginLogger, pluginId: string, pluginName: string, proxyPort: number, auth: {
|
|
27
28
|
user: string;
|
|
28
29
|
pass: string;
|
|
29
30
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type * from '../../server/src/api/database/types.js';
|
|
2
2
|
export type * from '../../server/src/api/types/index.js';
|
|
3
3
|
export type * from '../../server/src/api/websocket/types.js';
|
|
4
|
-
export
|
|
4
|
+
export * from '../../server/src/camera/polygon.js';
|
|
5
|
+
export type * from '../../server/src/camera/types.js';
|
|
5
6
|
export type * from '../../server/src/decoder/types.js';
|
|
6
7
|
export * from '../../server/src/go2rtc/types.js';
|
|
7
8
|
export type * from '../../server/src/nats/types.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"description": "camera.ui browser client",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/camera.ui)",
|
|
6
6
|
"module": "./dist/bundle.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@rushstack/eslint-patch": "^1.10.3",
|
|
35
35
|
"@swc/register": "^0.1.10",
|
|
36
36
|
"@types/webrtc": "^0.0.43",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
38
|
-
"@typescript-eslint/parser": "^7.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
38
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
39
39
|
"bufferutil": "^4.0.8",
|
|
40
40
|
"eslint": "^8.57.0",
|
|
41
41
|
"eslint-config-prettier": "^9.1.0",
|