@formant/data-sdk 0.0.101 → 0.0.103
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.
|
@@ -4,11 +4,10 @@ export declare class AudioPlayer {
|
|
|
4
4
|
private device;
|
|
5
5
|
private stream;
|
|
6
6
|
private muted;
|
|
7
|
-
pause(): Promise<void>;
|
|
8
7
|
play(): Promise<void>;
|
|
8
|
+
pause(): Promise<void>;
|
|
9
9
|
private hasReceivedData;
|
|
10
10
|
private audioContext;
|
|
11
|
-
private source;
|
|
12
11
|
private chunks;
|
|
13
12
|
private isPlaying;
|
|
14
13
|
private startTime;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRtcConnectConfiguration, IRtcStreamPayload, RtcClient } from "@formant/realtime-sdk";
|
|
1
|
+
import { IRtcConnectConfiguration, IRtcSendConfiguration, IRtcStreamMessage, IRtcStreamPayload, RtcClient } from "@formant/realtime-sdk";
|
|
2
2
|
import { DataChannel } from "./DataChannel";
|
|
3
3
|
import { CaptureStream } from "./CaptureStream";
|
|
4
4
|
import { Manipulator } from "./Manipulator";
|
|
@@ -101,6 +101,7 @@ export declare class Device implements IRealtimeDevice {
|
|
|
101
101
|
getRealtimeStatus(): "disconnected" | "connecting" | "connected";
|
|
102
102
|
getRealtimePing(): number | undefined;
|
|
103
103
|
startRealtimeConnection(config?: IRtcConnectConfiguration): Promise<void>;
|
|
104
|
+
sendRealtimeMessage(message: IRtcStreamMessage, config?: IRtcSendConfiguration): Promise<void>;
|
|
104
105
|
addRealtimeListener(listener: RealtimeListener): void;
|
|
105
106
|
removeRealtimeListener(listener: RealtimeListener): void;
|
|
106
107
|
getRealtimeAudioStreams(): Promise<RealtimeAudioStream[]>;
|
|
@@ -8,6 +8,7 @@ export * from "./Manipulator";
|
|
|
8
8
|
export * from "./RequestDataChannel";
|
|
9
9
|
export * from "./App";
|
|
10
10
|
export * from "./KeyValue";
|
|
11
|
+
export * from "./AudioPlayer";
|
|
11
12
|
export * from "./model/accessLevels";
|
|
12
13
|
export * from "./model/AccessLevel";
|
|
13
14
|
export * from "./model/aggregateLevels";
|
|
@@ -108,3 +109,4 @@ export * from "./model/Timestamp";
|
|
|
108
109
|
export * from "./model/Uuid";
|
|
109
110
|
export * from "./model/videoMimeTypes";
|
|
110
111
|
export * from "./model/VideoMimeType";
|
|
112
|
+
export { IRtcSendConfiguration, IRtcStreamMessage, IRtcStreamPayload, } from "@formant/realtime-sdk";
|