@defcomm/meetingsdk 0.3.8 → 0.3.9

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 CHANGED
@@ -793,7 +793,12 @@ var SFUClient = class {
793
793
  room_code: this.room,
794
794
  resume_token: this.resumeToken,
795
795
  display_name: this.joinOptions.displayName,
796
- avatar_url: this.joinOptions.avatarUrl
796
+ avatar_url: this.joinOptions.avatarUrl,
797
+ // Preserve the media state requested before host approval.
798
+ // The approval continuation is a second JOIN, so these values
799
+ // must be sent again instead of falling back to the SFU defaults.
800
+ audio_muted: this.desiredAudioMuted,
801
+ video_muted: this.desiredVideoMuted
797
802
  }
798
803
  });
799
804
  }
@@ -1058,10 +1063,7 @@ var SFUClient = class {
1058
1063
  source: normalizedSource
1059
1064
  };
1060
1065
  this.trackMetadata.set(normalized.track_id, normalized);
1061
- this.trackToParticipant.set(
1062
- normalized.track_id,
1063
- normalized.participant_id
1064
- );
1066
+ this.trackToParticipant.set(normalized.track_id, normalized.participant_id);
1065
1067
  if (normalizedSource) {
1066
1068
  this.trackToSource.set(normalized.track_id, normalizedSource);
1067
1069
  } else {