@defcomm/meetingsdk 0.1.3 → 0.1.4

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.mjs CHANGED
@@ -1974,11 +1974,12 @@ var VideoSDKCore = class {
1974
1974
  this.handleRemoteTrack(track, stream, metadata);
1975
1975
  },
1976
1976
  // SCREEN SHARE
1977
- onScreenShareStarted: (participantId, track) => {
1977
+ onScreenShareStarted: (participantId, _track) => {
1978
1978
  if (participantId === this.myId) {
1979
1979
  return;
1980
1980
  }
1981
- console.log("[SFU] Screen share started", participantId, track);
1981
+ console.log("[SFU] Screen share started", participantId);
1982
+ this.state.setPresenterId(participantId);
1982
1983
  const current = this.state.getParticipant(participantId);
1983
1984
  if (current) {
1984
1985
  this.state.updateParticipantMedia(participantId, {