@defcomm/meetingsdk 0.6.4 → 0.6.6
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.js +1 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -847,28 +847,9 @@ var SFUClient = class {
|
|
|
847
847
|
case "join_approved": {
|
|
848
848
|
const requestId = payload.request_id || message.request_id;
|
|
849
849
|
if (!requestId) break;
|
|
850
|
-
const participantId = payload.user_id || payload.participant_id
|
|
850
|
+
const participantId = payload.user_id || payload.participant_id;
|
|
851
851
|
this.pendingJoinRequestId = requestId;
|
|
852
852
|
this.onJoinApproved(requestId, participantId);
|
|
853
|
-
if (this.ws?.readyState === WebSocket.OPEN) {
|
|
854
|
-
this.setState("joining");
|
|
855
|
-
this.send({
|
|
856
|
-
type: "join",
|
|
857
|
-
request_id: requestId,
|
|
858
|
-
payload: {
|
|
859
|
-
token: this.token,
|
|
860
|
-
room_code: this.room,
|
|
861
|
-
resume_token: this.resumeToken,
|
|
862
|
-
display_name: this.joinOptions.displayName,
|
|
863
|
-
avatar_url: this.joinOptions.avatarUrl,
|
|
864
|
-
// Preserve the media state requested before host approval.
|
|
865
|
-
// The approval continuation is a second JOIN, so these values
|
|
866
|
-
// must be sent again instead of falling back to the SFU defaults.
|
|
867
|
-
audio_muted: this.desiredAudioMuted,
|
|
868
|
-
video_muted: this.desiredVideoMuted
|
|
869
|
-
}
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
853
|
break;
|
|
873
854
|
}
|
|
874
855
|
case "join_rejected": {
|
|
@@ -2601,15 +2582,6 @@ var VideoSDKCore = class {
|
|
|
2601
2582
|
},
|
|
2602
2583
|
"rejected"
|
|
2603
2584
|
);
|
|
2604
|
-
this.emitError(
|
|
2605
|
-
"JOIN_REJECTED",
|
|
2606
|
-
reason || "Your request to join was rejected",
|
|
2607
|
-
{
|
|
2608
|
-
requestId,
|
|
2609
|
-
reason
|
|
2610
|
-
},
|
|
2611
|
-
false
|
|
2612
|
-
);
|
|
2613
2585
|
},
|
|
2614
2586
|
onChatMessage: (message) => {
|
|
2615
2587
|
const msg = {
|