@cloudflare/realtimekit 1.2.2-staging.2 → 1.2.2-staging.3

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
@@ -17114,7 +17114,7 @@ class jl extends Gf {
17114
17114
  );
17115
17115
  try {
17116
17116
  const e = this.trackEnabled;
17117
- yield this.setMediaTrack(
17117
+ this.disableTrack(), yield this.setMediaTrack(
17118
17118
  yield this.mediaInterface.getAudioTrack(
17119
17119
  !e,
17120
17120
  this.userSelectedDevice
@@ -17391,7 +17391,7 @@ class jc extends Gf {
17391
17391
  return;
17392
17392
  }
17393
17393
  try {
17394
- yield this.setMediaTrack(
17394
+ this.disableTrack(), yield this.setMediaTrack(
17395
17395
  yield this.mediaInterface.getVideoTrack(this.userSelectedDevice)
17396
17396
  );
17397
17397
  } catch (r) {
@@ -28412,7 +28412,7 @@ let ti = (Kg = class {
28412
28412
  video: !0
28413
28413
  };
28414
28414
  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", lw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
28415
- })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.2-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28415
+ })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.2-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28416
28416
  }
28417
28417
  join() {
28418
28418
  return u(this, null, function* () {
package/dist/index.es5.js CHANGED
@@ -16788,19 +16788,19 @@ var Pg = nc, _M = Object.defineProperty, OM = Object.getOwnPropertyDescriptor, W
16788
16788
  }
16789
16789
  throw this.logger.warn("AudioMediaHandler.setDevice Received non audio device"), new j("Non audio device received while setting device!", "1603");
16790
16790
  case 6:
16791
- return u.prev = 6, i = this.trackEnabled, u.t0 = this, u.next = 11, this.mediaInterface.getAudioTrack(!i, this.userSelectedDevice);
16792
- case 11:
16793
- return u.t1 = u.sent, u.next = 14, u.t0.setMediaTrack.call(u.t0, u.t1);
16794
- case 14:
16795
- u.next = 21;
16791
+ return u.prev = 6, i = this.trackEnabled, this.disableTrack(), u.t0 = this, u.next = 12, this.mediaInterface.getAudioTrack(!i, this.userSelectedDevice);
16792
+ case 12:
16793
+ return u.t1 = u.sent, u.next = 15, u.t0.setMediaTrack.call(u.t0, u.t1);
16794
+ case 15:
16795
+ u.next = 22;
16796
16796
  break;
16797
- case 16:
16798
- throw u.prev = 16, u.t2 = u.catch(6), this.logger.error("AudioMediaHandler.setDevice.error", { error: u.t2 }), this.disableTrack(), new j(u.t2.message, "1604");
16799
- case 21:
16797
+ case 17:
16798
+ throw u.prev = 17, u.t2 = u.catch(6), this.logger.error("AudioMediaHandler.setDevice.error", { error: u.t2 }), this.disableTrack(), new j(u.t2.message, "1604");
16799
+ case 22:
16800
16800
  case "end":
16801
16801
  return u.stop();
16802
16802
  }
16803
- }, n, this, [[6, 16]]);
16803
+ }, n, this, [[6, 17]]);
16804
16804
  }));
16805
16805
  function r(n) {
16806
16806
  return e.apply(this, arguments);
@@ -17222,19 +17222,19 @@ var DM = Cc, ka = /* @__PURE__ */ C("mediaInterface"), LM = /* @__PURE__ */ func
17222
17222
  }
17223
17223
  return this.logger.warn("VideoMediaHandler.setDevice Tried switching device with video disabled", { devices: [a] }), this.currentDevice = a, s.abrupt("return");
17224
17224
  case 10:
17225
- return s.prev = 10, s.t0 = this, s.next = 14, this.mediaInterface.getVideoTrack(this.userSelectedDevice);
17226
- case 14:
17227
- return s.t1 = s.sent, s.next = 17, s.t0.setMediaTrack.call(s.t0, s.t1);
17228
- case 17:
17229
- s.next = 24;
17225
+ return s.prev = 10, this.disableTrack(), s.t0 = this, s.next = 15, this.mediaInterface.getVideoTrack(this.userSelectedDevice);
17226
+ case 15:
17227
+ return s.t1 = s.sent, s.next = 18, s.t0.setMediaTrack.call(s.t0, s.t1);
17228
+ case 18:
17229
+ s.next = 25;
17230
17230
  break;
17231
- case 19:
17232
- throw s.prev = 19, s.t2 = s.catch(10), this.logger.error("VideoMediaHandler.setDevice.error", { error: s.t2 }), this.disableTrack(), new j("Failed to change device", "1600", this.logger);
17233
- case 24:
17231
+ case 20:
17232
+ throw s.prev = 20, s.t2 = s.catch(10), this.logger.error("VideoMediaHandler.setDevice.error", { error: s.t2 }), this.disableTrack(), new j("Failed to change device", "1600", this.logger);
17233
+ case 25:
17234
17234
  case "end":
17235
17235
  return s.stop();
17236
17236
  }
17237
- }, n, this, [[10, 19]]);
17237
+ }, n, this, [[10, 20]]);
17238
17238
  }));
17239
17239
  function r(n) {
17240
17240
  return e.apply(this, arguments);