@camera.ui/browser 0.0.65 → 0.0.67
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/client.d.ts +3 -2
- package/dist/types/packages/client/browser/src/proxy/cameraDevice.d.ts +6 -23
- package/dist/types/packages/client/browser/src/proxy/deviceManager.d.ts +9 -38
- package/dist/types/packages/client/browser/src/proxy/pluginsManager.d.ts +5 -32
- package/dist/types/packages/client/browser/src/proxy/systemManager.d.ts +5 -32
- package/dist/types/packages/client/browser/src/socket.d.ts +10 -0
- package/dist/types/packages/client/browser/src/types.d.ts +1 -1
- package/dist/types/server/src/api/ws/types.d.ts +1 -1
- package/dist/types/server/src/camera/base/{base.server.d.ts → cameraDevice.d.ts} +2 -2
- package/dist/types/server/src/camera/base/{base.browser.d.ts → cameraDeviceBrowser.d.ts} +2 -2
- package/dist/types/server/src/camera/base/index.d.ts +80 -6
- package/dist/types/server/src/camera/streaming/browser/browser-peer-connection.d.ts +1 -1
- package/dist/types/server/src/camera/streaming/browser/browser-streaming-session.d.ts +1 -1
- package/dist/types/server/src/camera/streaming/browser/webrtc-browser-connection.d.ts +1 -1
- package/dist/types/server/src/camera/streaming/peer-connection.d.ts +1 -1
- package/dist/types/server/src/camera/streaming/streaming-session.d.ts +1 -1
- package/dist/types/server/src/camera/streaming/webrtc-connection.d.ts +1 -1
- package/dist/types/server/src/camera/utils/subscribed.d.ts +4 -4
- package/dist/types/server/src/{proxy → nats}/types.d.ts +114 -113
- package/dist/types/shared/types/index.d.ts +2 -2
- package/package.json +2 -3
- package/dist/types/server/src/camera/base/base.d.ts +0 -72
- package/dist/types/server/src/plugins/node/proxy/queue.d.ts +0 -29
- package/dist/types/server/src/proxy/constants.d.ts +0 -1
|
@@ -7,6 +7,7 @@ export interface API {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class CameraUiClient {
|
|
9
9
|
private api;
|
|
10
|
+
private socketService?;
|
|
10
11
|
private config;
|
|
11
12
|
private logger;
|
|
12
13
|
private token?;
|
|
@@ -17,10 +18,10 @@ export declare class CameraUiClient {
|
|
|
17
18
|
connect(): Promise<API>;
|
|
18
19
|
disconnect(): Promise<void>;
|
|
19
20
|
updateCredentials(newConfig: CameraUiClientConfig): Promise<void>;
|
|
21
|
+
private login;
|
|
20
22
|
getDeviceManager(): DeviceManager | undefined;
|
|
21
23
|
getPluginsManager(): PluginsManager | undefined;
|
|
22
24
|
getSystemManager(): SystemManager | undefined;
|
|
23
|
-
private
|
|
24
|
-
private proxyCredentials;
|
|
25
|
+
private checkSession;
|
|
25
26
|
private cleanUpClient;
|
|
26
27
|
}
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BrowserCameraDevice } from '../../../../../server/src/camera/base/cameraDeviceBrowser';
|
|
2
2
|
import type { BaseLogger, Camera, CameraSource, IceServer, OnSetEvent, StateValues } from '../../../../../shared/types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
private
|
|
6
|
-
private client;
|
|
7
|
-
private cameraSubscriber;
|
|
8
|
-
private cameraPluginSubscriber;
|
|
9
|
-
private messageQueue;
|
|
10
|
-
private options;
|
|
11
|
-
private pluginID;
|
|
12
|
-
private pluginName;
|
|
13
|
-
private clientSubject;
|
|
14
|
-
private cameraSubscriberSubject;
|
|
15
|
-
private cameraPluginSubscriberSubject;
|
|
3
|
+
import type { SocketService } from '../socket';
|
|
4
|
+
export declare class CameraDeviceProxy extends BrowserCameraDevice {
|
|
5
|
+
private socketService;
|
|
16
6
|
get sources(): CameraSource[];
|
|
17
|
-
constructor(camera: Camera,
|
|
18
|
-
servers: string;
|
|
19
|
-
user: string;
|
|
20
|
-
pass: string;
|
|
21
|
-
});
|
|
22
|
-
init(): Promise<void>;
|
|
7
|
+
constructor(camera: Camera, socketService: SocketService, logger: BaseLogger);
|
|
23
8
|
connect(): Promise<void>;
|
|
24
9
|
disconnect(): Promise<void>;
|
|
25
10
|
reboot(): Promise<void>;
|
|
@@ -28,7 +13,5 @@ export declare class CameraDeviceClient extends BrowserCameraDeviceBase {
|
|
|
28
13
|
updateState<T extends keyof StateValues>(stateName: T, eventData: OnSetEvent<T>): Promise<void>;
|
|
29
14
|
refreshStates(): Promise<void>;
|
|
30
15
|
cleanup(): Promise<void>;
|
|
31
|
-
private
|
|
32
|
-
private listenToMessages;
|
|
33
|
-
private onRequest;
|
|
16
|
+
private listenToChanges;
|
|
34
17
|
}
|
|
@@ -1,41 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
on<E extends keyof DeviceManagerProxyEventCallbacks>(event: E, listener: DeviceManagerProxyEventCallbacks[E]): this;
|
|
7
|
-
once<E extends keyof DeviceManagerProxyEventCallbacks>(event: E, listener: DeviceManagerProxyEventCallbacks[E]): this;
|
|
8
|
-
off<E extends keyof DeviceManagerProxyEventCallbacks>(event: E, listener: DeviceManagerProxyEventCallbacks[E]): this;
|
|
9
|
-
removeListener<E extends keyof DeviceManagerProxyEventCallbacks>(event: E, listener: DeviceManagerProxyEventCallbacks[E]): this;
|
|
10
|
-
removeAllListeners<E extends keyof DeviceManagerProxyEventCallbacks>(event?: E): this;
|
|
11
|
-
}
|
|
12
|
-
export declare class DeviceManager extends EventEmitter implements DeviceManagerBrowserProxyMethods {
|
|
13
|
-
private logger;
|
|
14
|
-
private initialized;
|
|
15
|
-
private publisher;
|
|
16
|
-
private client;
|
|
17
|
-
private subscriber;
|
|
18
|
-
private messageQueue;
|
|
19
|
-
private options;
|
|
20
|
-
private pluginId;
|
|
21
|
-
private pluginName;
|
|
22
|
-
private clientSubject;
|
|
23
|
-
private subscriberSubject;
|
|
1
|
+
import { BrowserCameraDevice } from '../../../../../server/src/camera/base/cameraDeviceBrowser';
|
|
2
|
+
import type { BaseLogger, DeviceManagerBrowserProxyMethods } from '../../../../../shared/types';
|
|
3
|
+
import type { SocketService } from '../socket';
|
|
4
|
+
export declare class DeviceManager implements DeviceManagerBrowserProxyMethods {
|
|
5
|
+
private socketService;
|
|
24
6
|
private devices;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
init(): Promise<void>;
|
|
31
|
-
getCameraById(id: string): Promise<CameraDevice | undefined>;
|
|
32
|
-
getCameraByName(name: string): Promise<CameraDevice | undefined>;
|
|
33
|
-
removeCameraByName(name: string): Promise<void>;
|
|
34
|
-
removeCameraById(id: string): Promise<void>;
|
|
35
|
-
emit(): boolean;
|
|
36
|
-
close(): Promise<void>;
|
|
37
|
-
private requestHandler;
|
|
38
|
-
private listenToMessages;
|
|
39
|
-
private onRequest;
|
|
7
|
+
private logger;
|
|
8
|
+
constructor(socketService: SocketService, logger: BaseLogger);
|
|
9
|
+
getCameraById(id: string): Promise<BrowserCameraDevice | undefined>;
|
|
10
|
+
getCameraByName(name: string): Promise<BrowserCameraDevice | undefined>;
|
|
40
11
|
private addOrGetCamera;
|
|
41
12
|
}
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
on<E extends keyof PluginsManagerProxyEventCallbacks>(event: E, listener: PluginsManagerProxyEventCallbacks[E]): this;
|
|
6
|
-
once<E extends keyof PluginsManagerProxyEventCallbacks>(event: E, listener: PluginsManagerProxyEventCallbacks[E]): this;
|
|
7
|
-
off<E extends keyof PluginsManagerProxyEventCallbacks>(event: E, listener: PluginsManagerProxyEventCallbacks[E]): this;
|
|
8
|
-
removeListener<E extends keyof PluginsManagerProxyEventCallbacks>(event: E, listener: PluginsManagerProxyEventCallbacks[E]): this;
|
|
9
|
-
removeAllListeners<E extends keyof PluginsManagerProxyEventCallbacks>(event?: E): this;
|
|
10
|
-
}
|
|
11
|
-
export declare class PluginsManager extends EventEmitter implements PluginsManagerBrowserProxyMethods {
|
|
1
|
+
import type { BaseLogger, PluginsManagerBrowserProxyMethods } from '../../../../../shared/types';
|
|
2
|
+
import type { SocketService } from '../socket';
|
|
3
|
+
export declare class PluginsManager implements PluginsManagerBrowserProxyMethods {
|
|
4
|
+
private socketService;
|
|
12
5
|
private logger;
|
|
13
|
-
|
|
14
|
-
private publisher;
|
|
15
|
-
private client;
|
|
16
|
-
private subscriber;
|
|
17
|
-
private messageQueue;
|
|
18
|
-
private options;
|
|
19
|
-
private pluginId;
|
|
20
|
-
private pluginName;
|
|
21
|
-
private clientSubject;
|
|
22
|
-
private subscriberSubject;
|
|
23
|
-
constructor(logger: BaseLogger, options: {
|
|
24
|
-
servers: string;
|
|
25
|
-
user: string;
|
|
26
|
-
pass: string;
|
|
27
|
-
});
|
|
28
|
-
init(): Promise<void>;
|
|
29
|
-
emit(): boolean;
|
|
30
|
-
close(): Promise<void>;
|
|
31
|
-
private requestHandler;
|
|
32
|
-
private listenToMessages;
|
|
33
|
-
private onRequest;
|
|
6
|
+
constructor(socketService: SocketService, logger: BaseLogger);
|
|
34
7
|
}
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
on<E extends keyof SystemManagerProxyEventCallbacks>(event: E, listener: SystemManagerProxyEventCallbacks[E]): this;
|
|
6
|
-
once<E extends keyof SystemManagerProxyEventCallbacks>(event: E, listener: SystemManagerProxyEventCallbacks[E]): this;
|
|
7
|
-
off<E extends keyof SystemManagerProxyEventCallbacks>(event: E, listener: SystemManagerProxyEventCallbacks[E]): this;
|
|
8
|
-
removeListener<E extends keyof SystemManagerProxyEventCallbacks>(event: E, listener: SystemManagerProxyEventCallbacks[E]): this;
|
|
9
|
-
removeAllListeners<E extends keyof SystemManagerProxyEventCallbacks>(event?: E): this;
|
|
10
|
-
}
|
|
11
|
-
export declare class SystemManager extends EventEmitter implements SystemManagerBrowserProxyMethods {
|
|
1
|
+
import type { BaseLogger, SystemManagerBrowserProxyMethods } from '../../../../../shared/types';
|
|
2
|
+
import type { SocketService } from '../socket';
|
|
3
|
+
export declare class SystemManager implements SystemManagerBrowserProxyMethods {
|
|
4
|
+
private socketService;
|
|
12
5
|
private logger;
|
|
13
|
-
|
|
14
|
-
private publisher;
|
|
15
|
-
private client;
|
|
16
|
-
private subscriber;
|
|
17
|
-
private messageQueue;
|
|
18
|
-
private options;
|
|
19
|
-
private pluginId;
|
|
20
|
-
private pluginName;
|
|
21
|
-
private clientSubject;
|
|
22
|
-
private subscriberSubject;
|
|
23
|
-
constructor(logger: BaseLogger, options: {
|
|
24
|
-
servers: string;
|
|
25
|
-
user: string;
|
|
26
|
-
pass: string;
|
|
27
|
-
});
|
|
28
|
-
init(): Promise<void>;
|
|
29
|
-
emit(): boolean;
|
|
30
|
-
close(): Promise<void>;
|
|
31
|
-
private requestHandler;
|
|
32
|
-
private listenToMessages;
|
|
33
|
-
private onRequest;
|
|
6
|
+
constructor(socketService: SocketService, logger: BaseLogger);
|
|
34
7
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Manager, type Socket } from 'socket.io-client';
|
|
2
|
+
import type { ManagerNames, WebsocketClientRequest } from '../../../../shared/types';
|
|
3
|
+
export declare class SocketService {
|
|
4
|
+
manager: Manager;
|
|
5
|
+
private token;
|
|
6
|
+
get socket(): Socket;
|
|
7
|
+
constructor(endpoint: string, token: string);
|
|
8
|
+
sendRequest<T extends ManagerNames>(data: WebsocketClientRequest<T>): Promise<any>;
|
|
9
|
+
close(): void;
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseLogger } from '../../../../shared/types';
|
|
2
|
-
export type { AudioState, BaseLogger, BasicBrowserPeerConnection, Camera, CameraConfig,
|
|
2
|
+
export type { AudioState, BaseLogger, BasicBrowserPeerConnection, BrowserCameraDevice, Camera, CameraConfig, CameraInput, DoorbellState, FfmpegOptions, Go2RtcAnswerMessage, Go2RtcIceCandidateMessage, Go2RtcIncomingMessage, Go2RtcOfferMessage, Go2RtcOutgoingMessage, LightState, MotionState, ObjectState, SirenState, } from '../../../../shared/types';
|
|
3
3
|
export { BrowserStreamingSession } from '../../../../shared/types';
|
|
4
4
|
export type CameraUiClientConfig = WithCredentials | WithToken;
|
|
5
5
|
interface BaseConfig {
|
|
@@ -2,7 +2,7 @@ import { PLUGIN_STATUS } from '../../plugins/types';
|
|
|
2
2
|
import type { Namespace } from 'socket.io';
|
|
3
3
|
import type { WebSocket } from 'ws';
|
|
4
4
|
import type { VideoStreamingMode } from '../database/types';
|
|
5
|
-
export type SocketNsp = '/camera.ui' | '/metrics' | '/logs' | '/status' | '/notifications' | '/streams' | '/plugins';
|
|
5
|
+
export type SocketNsp = '/camera.ui' | '/metrics' | '/logs' | '/status' | '/notifications' | '/streams' | '/plugins' | '/proxy';
|
|
6
6
|
export interface SocketNspMap {
|
|
7
7
|
nsp: Namespace;
|
|
8
8
|
[key: string]: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { BaseCameraDevice } from '.';
|
|
1
2
|
import { StreamingConnectionOptions } from '../streaming/peer-connection';
|
|
2
3
|
import { StreamingSession } from '../streaming/streaming-session';
|
|
3
|
-
import { CameraDeviceBase } from './base';
|
|
4
4
|
import type { Frame } from '../../decoder/types';
|
|
5
5
|
import type { CameraDelegate, CameraPrebufferDelegate, FfmpegOptions } from '../types';
|
|
6
|
-
export declare abstract class
|
|
6
|
+
export declare abstract class CameraDevice extends BaseCameraDevice {
|
|
7
7
|
private _delegate?;
|
|
8
8
|
private _prebufferDelegate?;
|
|
9
9
|
get delegate(): CameraDelegate | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { BaseCameraDevice } from '.';
|
|
1
2
|
import { BrowserStreamingSession } from '../streaming/browser/browser-streaming-session';
|
|
2
|
-
|
|
3
|
-
export declare abstract class BrowserCameraDeviceBase extends CameraDeviceBase {
|
|
3
|
+
export declare abstract class BrowserCameraDevice extends BaseCameraDevice {
|
|
4
4
|
createSession(sourceName: string, videoElement: HTMLVideoElement): Promise<BrowserStreamingSession>;
|
|
5
5
|
}
|
|
@@ -1,6 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
2
|
+
import type { Camera, CameraInformation, CameraPublicProperties, CameraType, CameraZone } from '../../api/database/types';
|
|
3
|
+
import type { IceServer } from '../../services/config/types';
|
|
4
|
+
import type { AudioState, BaseLogger, BatteryState, CameraSource, DoorbellState, LightState, MotionState, ObjectState, OnSetEvent, SirenState, StateValues } from '../types';
|
|
5
|
+
declare class Subscribed {
|
|
6
|
+
private readonly subscriptions;
|
|
7
|
+
private readonly additionalSubscriptions;
|
|
8
|
+
protected addSubscriptions(...subscriptions: Subscription[]): void;
|
|
9
|
+
protected addAdditionalSubscriptions(...subscriptions: Subscription[]): void;
|
|
10
|
+
protected unsubscribe(): void;
|
|
11
|
+
protected unsubscribeAdditional(): void;
|
|
12
|
+
}
|
|
13
|
+
export declare abstract class BaseCameraDevice extends Subscribed {
|
|
14
|
+
protected logger: BaseLogger;
|
|
15
|
+
protected cameraSubject: BehaviorSubject<Camera>;
|
|
16
|
+
protected cameraState: BehaviorSubject<boolean>;
|
|
17
|
+
protected lightState: BehaviorSubject<LightState>;
|
|
18
|
+
protected motionState: BehaviorSubject<MotionState>;
|
|
19
|
+
protected audioState: BehaviorSubject<AudioState>;
|
|
20
|
+
protected objectState: BehaviorSubject<ObjectState>;
|
|
21
|
+
protected doorbellState: BehaviorSubject<DoorbellState>;
|
|
22
|
+
protected sirenState: BehaviorSubject<SirenState>;
|
|
23
|
+
protected batteryState: BehaviorSubject<BatteryState>;
|
|
24
|
+
onConnected: Observable<boolean>;
|
|
25
|
+
onLightSwitched: Observable<LightState>;
|
|
26
|
+
onMotionDetected: Observable<MotionState>;
|
|
27
|
+
onAudioDetected: Observable<AudioState>;
|
|
28
|
+
onObjectDetected: Observable<ObjectState>;
|
|
29
|
+
onDoorbellPressed: Observable<DoorbellState>;
|
|
30
|
+
onSirenDetected: Observable<SirenState>;
|
|
31
|
+
onBatteryChanged: Observable<BatteryState>;
|
|
32
|
+
get id(): string;
|
|
33
|
+
get nativeId(): string | undefined;
|
|
34
|
+
get pluginId(): string;
|
|
35
|
+
get state(): boolean;
|
|
36
|
+
get disabled(): boolean;
|
|
37
|
+
get name(): string;
|
|
38
|
+
get type(): CameraType;
|
|
39
|
+
get info(): CameraInformation;
|
|
40
|
+
get isCloud(): boolean;
|
|
41
|
+
get hasLight(): boolean;
|
|
42
|
+
get hasSiren(): boolean;
|
|
43
|
+
get hasBinarySensor(): boolean;
|
|
44
|
+
get hasBattery(): boolean;
|
|
45
|
+
get hasMotionDetector(): boolean;
|
|
46
|
+
get hasAudioDetector(): boolean;
|
|
47
|
+
get hasObjectDetector(): boolean;
|
|
48
|
+
get hasPtz(): boolean;
|
|
49
|
+
get hasPrebuffer(): boolean;
|
|
50
|
+
get hasIntercom(): boolean;
|
|
51
|
+
get motionZones(): CameraZone[];
|
|
52
|
+
get objectZones(): CameraZone[];
|
|
53
|
+
get sources(): CameraSource[];
|
|
54
|
+
get streamSource(): CameraSource;
|
|
55
|
+
get snapshotSource(): CameraSource;
|
|
56
|
+
get recordingSource(): CameraSource;
|
|
57
|
+
get detectionSource(): CameraSource;
|
|
58
|
+
constructor(camera: Camera, logger: BaseLogger);
|
|
59
|
+
abstract connect(): Promise<void>;
|
|
60
|
+
abstract disconnect(): Promise<void>;
|
|
61
|
+
abstract reboot(): Promise<void>;
|
|
62
|
+
abstract snapshot(forceNew?: boolean): Promise<ArrayBuffer>;
|
|
63
|
+
abstract getIceServers(): Promise<IceServer[]>;
|
|
64
|
+
protected abstract cleanup(): void;
|
|
65
|
+
getValue<T extends keyof StateValues>(stateName: T): StateValues[T];
|
|
66
|
+
updateState<T extends keyof StateValues>(stateName: T, eventData: OnSetEvent<T>): Promise<void>;
|
|
67
|
+
onStateChange<T extends keyof StateValues>(stateName: T): Observable<{
|
|
68
|
+
newState: StateValues[T];
|
|
69
|
+
oldState: StateValues[T];
|
|
70
|
+
}>;
|
|
71
|
+
onPropertyChange<T extends keyof CameraPublicProperties>(property: T): Observable<{
|
|
72
|
+
oldData: Camera[T];
|
|
73
|
+
newData: Camera[T];
|
|
74
|
+
}>;
|
|
75
|
+
removeAllListeners(): void;
|
|
76
|
+
private createStateObservable;
|
|
77
|
+
protected updateCamera(updatedCamera: Camera): void;
|
|
78
|
+
protected updateCameraState(state: boolean): void;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReplaySubject, Subject } from 'rxjs';
|
|
2
2
|
import { Subscribed } from '../../utils/subscribed';
|
|
3
3
|
import type { IceServer } from '../../../services/config/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { BrowserCameraDevice as CameraDevice } from '../../base/cameraDeviceBrowser';
|
|
5
5
|
import type { BaseLogger, BasicBrowserPeerConnection } from '../../types';
|
|
6
6
|
export declare class BrowserPeerConnection extends Subscribed implements BasicBrowserPeerConnection {
|
|
7
7
|
onIceCandidate: Subject<RTCIceCandidate>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable, ReplaySubject } from 'rxjs';
|
|
2
2
|
import { Subscribed } from '../../utils/subscribed';
|
|
3
|
-
import type {
|
|
3
|
+
import type { BrowserCameraDevice as CameraDevice } from '../../base/cameraDeviceBrowser';
|
|
4
4
|
import type { BaseLogger } from '../../types';
|
|
5
5
|
import type { WebrtcBrowserConnection } from './webrtc-browser-connection';
|
|
6
6
|
export declare class BrowserStreamingSession extends Subscribed {
|
|
@@ -2,7 +2,7 @@ import { ReplaySubject, type Observable } from 'rxjs';
|
|
|
2
2
|
import { Subscribed } from '../../utils/subscribed';
|
|
3
3
|
import { BrowserPeerConnection } from './browser-peer-connection';
|
|
4
4
|
import type { IceServer } from '../../../services/config/types';
|
|
5
|
-
import type {
|
|
5
|
+
import type { BrowserCameraDevice as CameraDevice } from '../../base/cameraDeviceBrowser';
|
|
6
6
|
import type { BaseLogger } from '../../types';
|
|
7
7
|
export declare class WebrtcBrowserConnection extends Subscribed {
|
|
8
8
|
readonly onCallAnswered: ReplaySubject<string>;
|
|
@@ -3,7 +3,7 @@ import { MediaStreamTrack, RTCSessionDescription, RTCIceCandidate as WeriftRTCIC
|
|
|
3
3
|
import { Subscribed } from '../utils/subscribed';
|
|
4
4
|
import type { ConnectionState, RTCIceCandidate, RtcpPacket, RtpPacket } from 'werift';
|
|
5
5
|
import type { IceServer } from '../../services/config/types';
|
|
6
|
-
import type {
|
|
6
|
+
import type { CameraDevice } from '../base/cameraDevice';
|
|
7
7
|
import type { BaseLogger } from '../types';
|
|
8
8
|
export interface BasicPeerConnection {
|
|
9
9
|
createOffer(): Promise<RTCSessionDescription>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReplaySubject, Subject } from 'rxjs';
|
|
2
2
|
import { RtpPacket } from 'werift';
|
|
3
3
|
import { Subscribed } from '../utils/subscribed';
|
|
4
|
-
import type {
|
|
4
|
+
import type { CameraDevice } from '../base/cameraDevice';
|
|
5
5
|
import type { BaseLogger, FfmpegOptions, SpawnInput } from '../types';
|
|
6
6
|
import type { WebrtcConnection } from './webrtc-connection';
|
|
7
7
|
export declare class StreamingSession extends Subscribed {
|
|
@@ -2,7 +2,7 @@ import { ReplaySubject, Subject, type Observable } from 'rxjs';
|
|
|
2
2
|
import { Subscribed } from '../utils/subscribed';
|
|
3
3
|
import type { RtpPacket } from 'werift';
|
|
4
4
|
import type { IceServer } from '../../services/config/types';
|
|
5
|
-
import type {
|
|
5
|
+
import type { CameraDevice } from '../base/cameraDevice';
|
|
6
6
|
import type { BaseLogger } from '../types';
|
|
7
7
|
import type { StreamingConnectionOptions } from './peer-connection';
|
|
8
8
|
export declare class WebrtcConnection extends Subscribed {
|
|
@@ -2,8 +2,8 @@ import { Subscription } from 'rxjs';
|
|
|
2
2
|
export declare class Subscribed {
|
|
3
3
|
private readonly subscriptions;
|
|
4
4
|
private readonly additionalSubscriptions;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
addSubscriptions(...subscriptions: Subscription[]): void;
|
|
6
|
+
addAdditionalSubscriptions(...subscriptions: Subscription[]): void;
|
|
7
|
+
unsubscribe(): void;
|
|
8
|
+
unsubscribeAdditional(): void;
|
|
9
9
|
}
|