@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.mjs
CHANGED
|
@@ -1771,6 +1771,18 @@ var SFUClient = class {
|
|
|
1771
1771
|
async muteAllAudio() {
|
|
1772
1772
|
if (!this.send({ type: "mute_all_audio" })) throw new Error("SFU signaling is not connected");
|
|
1773
1773
|
}
|
|
1774
|
+
async muteParticipant(participantId) {
|
|
1775
|
+
if (!participantId) throw new Error("participantId is required");
|
|
1776
|
+
if (!this.send({ type: "mute_participant", payload: { participant_id: participantId } })) {
|
|
1777
|
+
throw new Error("SFU signaling is not connected");
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
async unmuteParticipant(participantId) {
|
|
1781
|
+
if (!participantId) throw new Error("participantId is required");
|
|
1782
|
+
if (!this.send({ type: "unmute_participant", payload: { participant_id: participantId } })) {
|
|
1783
|
+
throw new Error("SFU signaling is not connected");
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1774
1786
|
async unmuteAllAudio() {
|
|
1775
1787
|
if (!this.send({ type: "unmute_all_audio" })) throw new Error("SFU signaling is not connected");
|
|
1776
1788
|
}
|
|
@@ -2701,6 +2713,14 @@ var VideoSDKCore = class {
|
|
|
2701
2713
|
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2702
2714
|
return this.sfuClient.muteAllAudio();
|
|
2703
2715
|
}
|
|
2716
|
+
async muteParticipant(participantId) {
|
|
2717
|
+
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2718
|
+
return this.sfuClient.muteParticipant(participantId);
|
|
2719
|
+
}
|
|
2720
|
+
async unmuteParticipant(participantId) {
|
|
2721
|
+
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2722
|
+
return this.sfuClient.unmuteParticipant(participantId);
|
|
2723
|
+
}
|
|
2704
2724
|
async unmuteAllAudio() {
|
|
2705
2725
|
if (!this.sfuClient) throw new Error("SFU client is not connected");
|
|
2706
2726
|
return this.sfuClient.unmuteAllAudio();
|
|
@@ -3154,6 +3174,8 @@ var MeetingProvider = ({
|
|
|
3154
3174
|
cancelJoinRequest: sdk.cancelJoinRequest.bind(sdk),
|
|
3155
3175
|
muteAllAudio: sdk.muteAllAudio.bind(sdk),
|
|
3156
3176
|
unmuteAllAudio: sdk.unmuteAllAudio.bind(sdk),
|
|
3177
|
+
muteParticipant: sdk.muteParticipant.bind(sdk),
|
|
3178
|
+
unmuteParticipant: sdk.unmuteParticipant.bind(sdk),
|
|
3157
3179
|
removeParticipant: sdk.removeParticipant.bind(sdk),
|
|
3158
3180
|
getModerators: sdk.getModerators.bind(sdk),
|
|
3159
3181
|
addModerator: sdk.addModerator.bind(sdk),
|