@cloudflare/realtimekit 1.1.7-staging.3 → 1.1.7-staging.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.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) {
@@ -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.4"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
30505
30506
  }
30506
30507
  join() {
30507
30508
  return u(this, null, function* () {