livekit-client 1.0.3 → 1.0.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.
@@ -10058,7 +10058,7 @@ function computeBitrate(currentStats, prevStats) {
10058
10058
  return (bytesNow - bytesPrev) * 8 * 1000 / (currentStats.timestamp - prevStats.timestamp);
10059
10059
  }
10060
10060
 
10061
- var version$1 = "1.0.3";
10061
+ var version$1 = "1.0.4";
10062
10062
 
10063
10063
  const version = version$1;
10064
10064
  const protocolVersion = 8;
@@ -19214,7 +19214,8 @@ const publishDefaults = {
19214
19214
  dtx: true,
19215
19215
  simulcast: true,
19216
19216
  screenShareEncoding: ScreenSharePresets.h1080fps15.encoding,
19217
- stopMicTrackOnMute: false
19217
+ stopMicTrackOnMute: false,
19218
+ videoCodec: 'vp8'
19218
19219
  };
19219
19220
  const audioDefaults = {
19220
19221
  autoGainControl: true,
@@ -19509,8 +19510,7 @@ class Room extends events.exports.EventEmitter {
19509
19510
  if (info.state === ParticipantInfo_State.DISCONNECTED) {
19510
19511
  this.handleParticipantDisconnected(info.sid, remoteParticipant);
19511
19512
  } else if (isNewParticipant) {
19512
- this.identityToSid.set(info.identity, info.sid); // fire connected event
19513
-
19513
+ // fire connected event
19514
19514
  this.emit(RoomEvent.ParticipantConnected, remoteParticipant);
19515
19515
  } else {
19516
19516
  // just update, no events
@@ -20009,10 +20009,15 @@ class Room extends events.exports.EventEmitter {
20009
20009
 
20010
20010
 
20011
20011
  const participant = this.createParticipant(id, info);
20012
- this.participants.set(id, participant); // also forward events
20012
+ this.participants.set(id, participant);
20013
+
20014
+ if (info) {
20015
+ this.identityToSid.set(info.identity, info.sid);
20016
+ } // also forward events
20013
20017
  // trackPublished is only fired for tracks added after both local participant
20014
20018
  // and remote participant joined the room
20015
20019
 
20020
+
20016
20021
  participant.on(ParticipantEvent.TrackPublished, trackPublication => {
20017
20022
  this.emit(RoomEvent.TrackPublished, trackPublication, participant);
20018
20023
  }).on(ParticipantEvent.TrackSubscribed, (track, publication) => {