@defcomm/meetingsdk 0.3.3 → 0.3.5

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
@@ -2345,7 +2345,10 @@ var VideoSDKCore = class {
2345
2345
  screenStream: existingRemoteScreen,
2346
2346
  screenTrack
2347
2347
  });
2348
- this.events.onScreenShareStarted?.(participantId, existingRemoteScreen);
2348
+ this.events.onScreenShareStarted?.(
2349
+ participantId,
2350
+ existingRemoteScreen
2351
+ );
2349
2352
  return;
2350
2353
  }
2351
2354
  const current = this.state.getParticipant(participantId);
@@ -2396,8 +2399,8 @@ var VideoSDKCore = class {
2396
2399
  await client.getToken(roomId, {
2397
2400
  displayName: name,
2398
2401
  participantId: this.myId,
2399
- audioMuted: this.state.localParticipant?.media?.micEnabled,
2400
- videoMuted: this.state.localParticipant?.media?.camEnabled
2402
+ audioMuted: !(this.localStream?.getAudioTracks()[0]?.enabled ?? true),
2403
+ videoMuted: !(this.localStream?.getVideoTracks()[0]?.enabled ?? true)
2401
2404
  });
2402
2405
  }
2403
2406
  // SFU STATE