@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.js CHANGED
@@ -2010,11 +2010,12 @@ var VideoSDKCore = class {
2010
2010
  this.handleRemoteTrack(track, stream, metadata);
2011
2011
  },
2012
2012
  // SCREEN SHARE
2013
- onScreenShareStarted: (participantId, track) => {
2013
+ onScreenShareStarted: (participantId, _track) => {
2014
2014
  if (participantId === this.myId) {
2015
2015
  return;
2016
2016
  }
2017
- console.log("[SFU] Screen share started", participantId, track);
2017
+ console.log("[SFU] Screen share started", participantId);
2018
+ this.state.setPresenterId(participantId);
2018
2019
  const current = this.state.getParticipant(participantId);
2019
2020
  if (current) {
2020
2021
  this.state.updateParticipantMedia(participantId, {