@cloudflare/realtimekit 1.1.7-staging.3 → 1.1.7-staging.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.es.js CHANGED
@@ -18937,9 +18937,10 @@ class Ot extends Jn {
18937
18937
  }
18938
18938
  setupSpeaker() {
18939
18939
  return u(this, null, function* () {
18940
- yield a(this, zs).setupSpeaker();
18941
18940
  const { speaker: e } = this.getCurrentDevices();
18942
- e && this.emit("DEVICE_CHANGE", { device: e });
18941
+ yield a(this, zs).setupSpeaker();
18942
+ const { speaker: r } = this.getCurrentDevices();
18943
+ (e == null ? void 0 : e.deviceId) !== (r == null ? void 0 : r.deviceId) && r && this.emit("DEVICE_CHANGE", { device: r });
18943
18944
  });
18944
18945
  }
18945
18946
  setSpeakerDevice(e) {
@@ -26319,19 +26320,19 @@ class lD {
26319
26320
  const r = {
26320
26321
  requests: [],
26321
26322
  consumingTransportId: this.recvTransport.serverId
26322
- };
26323
- t.forEach(({ id: i, producingTransportId: n, localId: o }) => {
26323
+ }, i = t.filter((n) => n && n.id);
26324
+ i.forEach(({ id: n, producingTransportId: o, localId: c }) => {
26324
26325
  r.requests.push({
26325
- producerId: i,
26326
- producingTransportId: n,
26327
- mid: o,
26326
+ producerId: n,
26327
+ producingTransportId: o,
26328
+ mid: c,
26328
26329
  simulcast: {
26329
26330
  preferredRid: e === 0 ? "q" : "h",
26330
26331
  priorityOrdering: "asciibetical",
26331
26332
  ridNotAvailable: "asciibetical"
26332
26333
  }
26333
26334
  });
26334
- }), yield this.socketHandler.updateConsumersSimulcastConfig(r), a(this, ts).info(`Consumers switched layers to ${e}`, { consumerIds: t == null ? void 0 : t.map(({ id: i }) => i) });
26335
+ }), yield this.socketHandler.updateConsumersSimulcastConfig(r), a(this, ts).info(`Consumers switched layers to ${e}`, { consumerIds: i == null ? void 0 : i.map(({ id: n }) => n) });
26335
26336
  });
26336
26337
  }
26337
26338
  }
@@ -30501,7 +30502,7 @@ let ri = (Wg = class {
30501
30502
  video: true
30502
30503
  };
30503
30504
  return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", PC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
30504
- })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
30505
+ })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.5"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
30505
30506
  }
30506
30507
  join() {
30507
30508
  return u(this, null, function* () {