@cloudflare/realtimekit 1.2.0-staging.18 → 1.2.0-staging.19

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.es.js CHANGED
@@ -22397,16 +22397,16 @@ const Zf = (Hg = class {
22397
22397
  if (!this.mediaJoined || s === this.self.id)
22398
22398
  return;
22399
22399
  const r = this.participants.joined.get(s);
22400
- if (this.logger.info("PEER_INFO:::SOCKET_ON_MEDIA_JOIN", {
22400
+ if (!r) {
22401
+ this.logger.warn(`Received media.peerJoinedBroadcast for non-existent peer ${s}`);
22402
+ return;
22403
+ }
22404
+ this.logger.info("PEER_INFO:::SOCKET_ON_MEDIA_JOIN", {
22401
22405
  dyteParticipant: {
22402
22406
  id: r.id,
22403
22407
  maskedName: [...(r == null ? void 0 : r.name) || ""].map((i, a) => a % 2 ? "*" : i).join("")
22404
22408
  }
22405
- }), !r) {
22406
- this.logger.warn(`Received media.peerJoinedBroadcast for non-existent peer ${s}`);
22407
- return;
22408
- }
22409
- this.logger.info(`onParticipantMediaJoined: peer ${s} has joined media room. Processing.`), t.forEach((i) => {
22409
+ }), this.logger.info(`onParticipantMediaJoined: peer ${s} has joined media room. Processing.`), t.forEach((i) => {
22410
22410
  i.kind === Fs.AUDIO && !i.screenShare ? r.setAudioEnabled(!i.pause) : i.kind === Fs.VIDEO && !i.screenShare && (r.setVideoEnabled(!i.pause), this.updatePipSource(r.id, !i.pause)), r.producers.push(H(D({}, i), {
22411
22411
  producingTransportId: i.producingTransportId,
22412
22412
  kind: i.kind === Fs.AUDIO ? "audio" : "video",
@@ -30471,7 +30471,7 @@ let ti = (Jg = class {
30471
30471
  video: true
30472
30472
  };
30473
30473
  return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", uw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
30474
- })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.0-staging.18"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new zO()), a;
30474
+ })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.0-staging.19"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new zO()), a;
30475
30475
  }
30476
30476
  join() {
30477
30477
  return u(this, null, function* () {