@defcomm/meetingsdk 0.3.3 → 0.3.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
@@ -2381,7 +2381,10 @@ var VideoSDKCore = class {
2381
2381
  screenStream: existingRemoteScreen,
2382
2382
  screenTrack
2383
2383
  });
2384
- this.events.onScreenShareStarted?.(participantId, existingRemoteScreen);
2384
+ this.events.onScreenShareStarted?.(
2385
+ participantId,
2386
+ existingRemoteScreen
2387
+ );
2385
2388
  return;
2386
2389
  }
2387
2390
  const current = this.state.getParticipant(participantId);
@@ -2432,8 +2435,8 @@ var VideoSDKCore = class {
2432
2435
  await client.getToken(roomId, {
2433
2436
  displayName: name,
2434
2437
  participantId: this.myId,
2435
- audioMuted: this.state.localParticipant?.media?.micEnabled,
2436
- videoMuted: this.state.localParticipant?.media?.camEnabled
2438
+ audioMuted: !(this.localStream?.getAudioTracks()[0]?.enabled ?? true),
2439
+ videoMuted: !(this.localStream?.getVideoTracks()[0]?.enabled ?? true)
2437
2440
  });
2438
2441
  }
2439
2442
  // SFU STATE