@camera.ui/browser 0.0.42 → 0.0.44
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReplaySubject } from 'rxjs';
|
|
1
|
+
import { ReplaySubject, Observable } from 'rxjs';
|
|
2
2
|
import { Subscribed } from '../../utils/subscribed';
|
|
3
3
|
import type { BaseLogger, CameraDevice } from '../../types';
|
|
4
4
|
import type { WebrtcBrowserConnection } from './webrtc-browser-connection';
|
|
@@ -6,17 +6,18 @@ export declare class BrowserStreamingSession extends Subscribed {
|
|
|
6
6
|
readonly onCallAnswered: ReplaySubject<void>;
|
|
7
7
|
readonly onCallEnded: ReplaySubject<void>;
|
|
8
8
|
private onUsingOpus;
|
|
9
|
-
private
|
|
9
|
+
private micState;
|
|
10
10
|
private hasEnded;
|
|
11
11
|
private cameraDevice;
|
|
12
12
|
private connection;
|
|
13
13
|
private logger;
|
|
14
|
+
onMicrophoneEnabled: Observable<boolean>;
|
|
14
15
|
get isUsingOpus(): Promise<boolean>;
|
|
15
|
-
get micEnabled(): boolean;
|
|
16
16
|
constructor(cameraDevice: CameraDevice, logger: BaseLogger, connection: WebrtcBrowserConnection);
|
|
17
17
|
enableMicrophone(track: MediaStreamTrack): void;
|
|
18
18
|
disableMicrophone(): void;
|
|
19
19
|
stop(): void;
|
|
20
|
+
private createStateObservable;
|
|
20
21
|
private bindToConnection;
|
|
21
22
|
private callEnded;
|
|
22
23
|
}
|
|
@@ -85,6 +85,7 @@ export declare class CameraDeviceProxy implements CameraDeviceProxyMethods {
|
|
|
85
85
|
}): Promise<{
|
|
86
86
|
camera: Camera;
|
|
87
87
|
states: StateValues;
|
|
88
|
+
cameraState: boolean;
|
|
88
89
|
}>;
|
|
89
90
|
onRequestReboot(pluginId: string, cameraId: string, ...args: Parameters<CameraDelegate['reboot']>): Promise<Buffer>;
|
|
90
91
|
onRequestGetStreamInfo(pluginId: string, cameraId: string, ...args: Parameters<CameraPrebufferDelegate['getStreamInfo']>): Promise<StreamInfo | undefined>;
|