@defcomm/meetingsdk 0.5.1 → 0.5.2
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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -270,6 +270,8 @@ declare class VideoSDKCore {
|
|
|
270
270
|
rejectJoinRequest(requestId: string, reason?: string): Promise<void>;
|
|
271
271
|
cancelJoinRequest(requestId?: string): Promise<void | undefined>;
|
|
272
272
|
muteAllAudio(): Promise<void>;
|
|
273
|
+
muteParticipant(participantId: string): Promise<void>;
|
|
274
|
+
unmuteParticipant(participantId: string): Promise<void>;
|
|
273
275
|
unmuteAllAudio(): Promise<void>;
|
|
274
276
|
removeParticipant(participantId: string): Promise<void>;
|
|
275
277
|
getModerators(roomCode: string): Promise<any>;
|
|
@@ -353,6 +355,8 @@ type MeetingContextValue = {
|
|
|
353
355
|
cancelJoinRequest: (requestId?: string) => Promise<void> | undefined;
|
|
354
356
|
muteAllAudio: () => Promise<void>;
|
|
355
357
|
unmuteAllAudio: () => Promise<void>;
|
|
358
|
+
muteParticipant: (participantId: string) => Promise<void>;
|
|
359
|
+
unmuteParticipant: (participantId: string) => Promise<void>;
|
|
356
360
|
removeParticipant: (participantId: string) => Promise<void>;
|
|
357
361
|
getModerators: (roomCode: string) => Promise<any> | undefined;
|
|
358
362
|
addModerator: (roomCode: string, userId: string) => Promise<any> | undefined;
|
|
@@ -429,6 +433,8 @@ declare const useMeeting: (handlers?: {
|
|
|
429
433
|
cancelJoinRequest: (requestId?: string) => Promise<void> | undefined;
|
|
430
434
|
muteAllAudio: () => Promise<void>;
|
|
431
435
|
unmuteAllAudio: () => Promise<void>;
|
|
436
|
+
muteParticipant: (participantId: string) => Promise<void>;
|
|
437
|
+
unmuteParticipant: (participantId: string) => Promise<void>;
|
|
432
438
|
removeParticipant: (participantId: string) => Promise<void>;
|
|
433
439
|
getModerators: (roomCode: string) => Promise<any> | undefined;
|
|
434
440
|
addModerator: (roomCode: string, userId: string) => Promise<any> | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -270,6 +270,8 @@ declare class VideoSDKCore {
|
|
|
270
270
|
rejectJoinRequest(requestId: string, reason?: string): Promise<void>;
|
|
271
271
|
cancelJoinRequest(requestId?: string): Promise<void | undefined>;
|
|
272
272
|
muteAllAudio(): Promise<void>;
|
|
273
|
+
muteParticipant(participantId: string): Promise<void>;
|
|
274
|
+
unmuteParticipant(participantId: string): Promise<void>;
|
|
273
275
|
unmuteAllAudio(): Promise<void>;
|
|
274
276
|
removeParticipant(participantId: string): Promise<void>;
|
|
275
277
|
getModerators(roomCode: string): Promise<any>;
|
|
@@ -353,6 +355,8 @@ type MeetingContextValue = {
|
|
|
353
355
|
cancelJoinRequest: (requestId?: string) => Promise<void> | undefined;
|
|
354
356
|
muteAllAudio: () => Promise<void>;
|
|
355
357
|
unmuteAllAudio: () => Promise<void>;
|
|
358
|
+
muteParticipant: (participantId: string) => Promise<void>;
|
|
359
|
+
unmuteParticipant: (participantId: string) => Promise<void>;
|
|
356
360
|
removeParticipant: (participantId: string) => Promise<void>;
|
|
357
361
|
getModerators: (roomCode: string) => Promise<any> | undefined;
|
|
358
362
|
addModerator: (roomCode: string, userId: string) => Promise<any> | undefined;
|
|
@@ -429,6 +433,8 @@ declare const useMeeting: (handlers?: {
|
|
|
429
433
|
cancelJoinRequest: (requestId?: string) => Promise<void> | undefined;
|
|
430
434
|
muteAllAudio: () => Promise<void>;
|
|
431
435
|
unmuteAllAudio: () => Promise<void>;
|
|
436
|
+
muteParticipant: (participantId: string) => Promise<void>;
|
|
437
|
+
unmuteParticipant: (participantId: string) => Promise<void>;
|
|
432
438
|
removeParticipant: (participantId: string) => Promise<void>;
|
|
433
439
|
getModerators: (roomCode: string) => Promise<any> | undefined;
|
|
434
440
|
addModerator: (roomCode: string, userId: string) => Promise<any> | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1801,6 +1801,18 @@ var SFUClient = class {
|
|
|
1801
1801
|
async muteAllAudio() {
|
|
1802
1802
|
if (!this.send({ type: "mute_all_audio" })) throw new Error("SFU signaling is not connected");
|
|
1803
1803
|
}
|
|
1804
|
+
async muteParticipant(participantId) {
|
|
1805
|
+
if (!participantId) throw new Error("participantId is required");
|
|
1806
|
+
if (!this.send({ type: "mute_participant", payload: { participant_id: participantId } })) {
|
|
1807
|
+
throw new Error("SFU signaling is not connected");
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
async unmuteParticipant(participantId) {
|
|
1811
|
+
if (!participantId) throw new Error("participantId is required");
|
|
1812
|
+
if (!this.send({ type: "unmute_participant", payload: { participant_id: participantId } })) {
|
|
1813
|
+
throw new Error("SFU signaling is not connected");
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1804
1816
|
async unmuteAllAudio() {
|
|
1805
1817
|
if (!this.send({ type: "unmute_all_audio" })) throw new Error("SFU signaling is not connected");
|
|
1806
1818
|
}
|
|
@@ -2731,6 +2743,14 @@ var VideoSDKCore = class {
|
|
|
2731
2743
|
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2732
2744
|
return this.sfuClient.muteAllAudio();
|
|
2733
2745
|
}
|
|
2746
|
+
async muteParticipant(participantId) {
|
|
2747
|
+
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2748
|
+
return this.sfuClient.muteParticipant(participantId);
|
|
2749
|
+
}
|
|
2750
|
+
async unmuteParticipant(participantId) {
|
|
2751
|
+
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2752
|
+
return this.sfuClient.unmuteParticipant(participantId);
|
|
2753
|
+
}
|
|
2734
2754
|
async unmuteAllAudio() {
|
|
2735
2755
|
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2736
2756
|
return this.sfuClient.unmuteAllAudio();
|
|
@@ -3184,6 +3204,8 @@ var MeetingProvider = ({
|
|
|
3184
3204
|
cancelJoinRequest: sdk.cancelJoinRequest.bind(sdk),
|
|
3185
3205
|
muteAllAudio: sdk.muteAllAudio.bind(sdk),
|
|
3186
3206
|
unmuteAllAudio: sdk.unmuteAllAudio.bind(sdk),
|
|
3207
|
+
muteParticipant: sdk.muteParticipant.bind(sdk),
|
|
3208
|
+
unmuteParticipant: sdk.unmuteParticipant.bind(sdk),
|
|
3187
3209
|
removeParticipant: sdk.removeParticipant.bind(sdk),
|
|
3188
3210
|
getModerators: sdk.getModerators.bind(sdk),
|
|
3189
3211
|
addModerator: sdk.addModerator.bind(sdk),
|