@defcomm/meetingsdk 0.2.5 → 0.2.7
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/index.d.mts +17 -4
- package/dist/index.d.ts +17 -4
- package/dist/index.js +177 -177
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +177 -177
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -130,6 +130,9 @@ interface VideoSDKCoreOptions {
|
|
|
130
130
|
onTrackStateChanged?: (track: any) => void;
|
|
131
131
|
onRecordingStarted?: (recording: any) => void;
|
|
132
132
|
onRecordingStopped?: (recording: any) => void;
|
|
133
|
+
onRoomUpdate?: (data: any) => void;
|
|
134
|
+
onChatMessage?: (message: ChatMessage) => void;
|
|
135
|
+
onMuteStateChanged?: (peerId: string, kind: "audio" | "video", muted: boolean) => void;
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
declare const useLocalParticipant: () => {
|
|
@@ -259,7 +262,6 @@ interface SFUClientOptions {
|
|
|
259
262
|
onParticipantJoined?: (participant: ParticipantInfo) => void;
|
|
260
263
|
onParticipantLeft?: (participant: string | ParticipantInfo) => void;
|
|
261
264
|
onParticipantPresence?: (participantId: string, presence: string) => void;
|
|
262
|
-
onParticipantMediaState?: (participantId: string, audioMuted: boolean, videoMuted: boolean) => void;
|
|
263
265
|
onTrackPublished?: (track: TrackInfo) => void;
|
|
264
266
|
onTrackUnpublished?: (track: TrackInfo) => void;
|
|
265
267
|
onRemoteTrack?: (track: MediaStreamTrack, stream: MediaStream, metadata: TrackInfo) => void;
|
|
@@ -282,6 +284,9 @@ interface SFUClientOptions {
|
|
|
282
284
|
stopped_at: string;
|
|
283
285
|
}) => void;
|
|
284
286
|
onError?: (error: any) => void;
|
|
287
|
+
onChatMessage?: (message: any) => void;
|
|
288
|
+
onRoomUpdate?: (data: any) => void;
|
|
289
|
+
onParticipantMediaState?: (participantId: string, audioMuted: boolean, videoMuted: boolean) => void;
|
|
285
290
|
autoSubscribe?: boolean;
|
|
286
291
|
}
|
|
287
292
|
declare class SFUClient {
|
|
@@ -312,6 +317,8 @@ declare class SFUClient {
|
|
|
312
317
|
private intentionalClose;
|
|
313
318
|
private leaveAcknowledged;
|
|
314
319
|
private joiningWithResume;
|
|
320
|
+
private desiredAudioMuted;
|
|
321
|
+
private desiredVideoMuted;
|
|
315
322
|
private reconnectTimer;
|
|
316
323
|
private reconnectAttempt;
|
|
317
324
|
private maxReconnectAttempts;
|
|
@@ -338,7 +345,6 @@ declare class SFUClient {
|
|
|
338
345
|
private onParticipantJoined;
|
|
339
346
|
private onParticipantLeft;
|
|
340
347
|
private onParticipantPresence;
|
|
341
|
-
private onParticipantMediaState;
|
|
342
348
|
private onTrackPublished;
|
|
343
349
|
private onTrackUnpublished;
|
|
344
350
|
private onRemoteTrack;
|
|
@@ -354,8 +360,10 @@ declare class SFUClient {
|
|
|
354
360
|
private onTrackStateChanged;
|
|
355
361
|
private onRecordingStarted;
|
|
356
362
|
private onRecordingStopped;
|
|
357
|
-
private lastRecordingId;
|
|
358
363
|
private onError;
|
|
364
|
+
private onChatMessage;
|
|
365
|
+
private onRoomUpdate;
|
|
366
|
+
private onParticipantMediaState;
|
|
359
367
|
private autoSubscribe;
|
|
360
368
|
constructor(options?: SFUClientOptions);
|
|
361
369
|
private heartbeatTimer;
|
|
@@ -397,7 +405,7 @@ declare class SFUClient {
|
|
|
397
405
|
private failJoin;
|
|
398
406
|
private resolveJoin;
|
|
399
407
|
private handleServerMessage;
|
|
400
|
-
private
|
|
408
|
+
private onRoomStateReconciled;
|
|
401
409
|
private rememberTrack;
|
|
402
410
|
private handleJoined;
|
|
403
411
|
private initializePeerConnections;
|
|
@@ -420,6 +428,11 @@ declare class SFUClient {
|
|
|
420
428
|
stopScreenShare(): Promise<void>;
|
|
421
429
|
muteAudio(muted: boolean): void;
|
|
422
430
|
muteVideo(muted: boolean): void;
|
|
431
|
+
sendChatMessage(input: {
|
|
432
|
+
message: string;
|
|
433
|
+
reply_to?: any;
|
|
434
|
+
target?: string | null;
|
|
435
|
+
}): boolean;
|
|
423
436
|
startRecording(): Promise<void>;
|
|
424
437
|
stopRecording(): Promise<void>;
|
|
425
438
|
getRecordingStatus(): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -130,6 +130,9 @@ interface VideoSDKCoreOptions {
|
|
|
130
130
|
onTrackStateChanged?: (track: any) => void;
|
|
131
131
|
onRecordingStarted?: (recording: any) => void;
|
|
132
132
|
onRecordingStopped?: (recording: any) => void;
|
|
133
|
+
onRoomUpdate?: (data: any) => void;
|
|
134
|
+
onChatMessage?: (message: ChatMessage) => void;
|
|
135
|
+
onMuteStateChanged?: (peerId: string, kind: "audio" | "video", muted: boolean) => void;
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
declare const useLocalParticipant: () => {
|
|
@@ -259,7 +262,6 @@ interface SFUClientOptions {
|
|
|
259
262
|
onParticipantJoined?: (participant: ParticipantInfo) => void;
|
|
260
263
|
onParticipantLeft?: (participant: string | ParticipantInfo) => void;
|
|
261
264
|
onParticipantPresence?: (participantId: string, presence: string) => void;
|
|
262
|
-
onParticipantMediaState?: (participantId: string, audioMuted: boolean, videoMuted: boolean) => void;
|
|
263
265
|
onTrackPublished?: (track: TrackInfo) => void;
|
|
264
266
|
onTrackUnpublished?: (track: TrackInfo) => void;
|
|
265
267
|
onRemoteTrack?: (track: MediaStreamTrack, stream: MediaStream, metadata: TrackInfo) => void;
|
|
@@ -282,6 +284,9 @@ interface SFUClientOptions {
|
|
|
282
284
|
stopped_at: string;
|
|
283
285
|
}) => void;
|
|
284
286
|
onError?: (error: any) => void;
|
|
287
|
+
onChatMessage?: (message: any) => void;
|
|
288
|
+
onRoomUpdate?: (data: any) => void;
|
|
289
|
+
onParticipantMediaState?: (participantId: string, audioMuted: boolean, videoMuted: boolean) => void;
|
|
285
290
|
autoSubscribe?: boolean;
|
|
286
291
|
}
|
|
287
292
|
declare class SFUClient {
|
|
@@ -312,6 +317,8 @@ declare class SFUClient {
|
|
|
312
317
|
private intentionalClose;
|
|
313
318
|
private leaveAcknowledged;
|
|
314
319
|
private joiningWithResume;
|
|
320
|
+
private desiredAudioMuted;
|
|
321
|
+
private desiredVideoMuted;
|
|
315
322
|
private reconnectTimer;
|
|
316
323
|
private reconnectAttempt;
|
|
317
324
|
private maxReconnectAttempts;
|
|
@@ -338,7 +345,6 @@ declare class SFUClient {
|
|
|
338
345
|
private onParticipantJoined;
|
|
339
346
|
private onParticipantLeft;
|
|
340
347
|
private onParticipantPresence;
|
|
341
|
-
private onParticipantMediaState;
|
|
342
348
|
private onTrackPublished;
|
|
343
349
|
private onTrackUnpublished;
|
|
344
350
|
private onRemoteTrack;
|
|
@@ -354,8 +360,10 @@ declare class SFUClient {
|
|
|
354
360
|
private onTrackStateChanged;
|
|
355
361
|
private onRecordingStarted;
|
|
356
362
|
private onRecordingStopped;
|
|
357
|
-
private lastRecordingId;
|
|
358
363
|
private onError;
|
|
364
|
+
private onChatMessage;
|
|
365
|
+
private onRoomUpdate;
|
|
366
|
+
private onParticipantMediaState;
|
|
359
367
|
private autoSubscribe;
|
|
360
368
|
constructor(options?: SFUClientOptions);
|
|
361
369
|
private heartbeatTimer;
|
|
@@ -397,7 +405,7 @@ declare class SFUClient {
|
|
|
397
405
|
private failJoin;
|
|
398
406
|
private resolveJoin;
|
|
399
407
|
private handleServerMessage;
|
|
400
|
-
private
|
|
408
|
+
private onRoomStateReconciled;
|
|
401
409
|
private rememberTrack;
|
|
402
410
|
private handleJoined;
|
|
403
411
|
private initializePeerConnections;
|
|
@@ -420,6 +428,11 @@ declare class SFUClient {
|
|
|
420
428
|
stopScreenShare(): Promise<void>;
|
|
421
429
|
muteAudio(muted: boolean): void;
|
|
422
430
|
muteVideo(muted: boolean): void;
|
|
431
|
+
sendChatMessage(input: {
|
|
432
|
+
message: string;
|
|
433
|
+
reply_to?: any;
|
|
434
|
+
target?: string | null;
|
|
435
|
+
}): boolean;
|
|
423
436
|
startRecording(): Promise<void>;
|
|
424
437
|
stopRecording(): Promise<void>;
|
|
425
438
|
getRecordingStatus(): Promise<any>;
|