@cloudflare/realtimekit 1.0.2-staging.1 → 1.0.2-staging.2

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
@@ -21835,7 +21835,7 @@ const Kc = (fm = class {
21835
21835
  );
21836
21836
  this.updateParticipantsMap(
21837
21837
  a(this, qn),
21838
- this.participants.videoSubscribed.toArray().map(({ id: h }) => h)
21838
+ this.participants.videoSubscribed.toArray().filter(({ videoEnabled: h }) => !!h).map(({ id: h }) => h)
21839
21839
  );
21840
21840
  const [e, r] = Kc.mapDiff(
21841
21841
  a(this, jn),
@@ -21843,7 +21843,7 @@ const Kc = (fm = class {
21843
21843
  );
21844
21844
  this.updateParticipantsMap(
21845
21845
  a(this, jn),
21846
- this.participants.audioSubscribed.toArray().map(({ id: h }) => h)
21846
+ this.participants.audioSubscribed.toArray().filter(({ audioEnabled: h }) => !!h).map(({ id: h }) => h)
21847
21847
  );
21848
21848
  const i = [
21849
21849
  ...this.mapPeerIdsToProducers(s, ["video"]),
@@ -21910,7 +21910,7 @@ const Kc = (fm = class {
21910
21910
  producingPeerId: s,
21911
21911
  mimeType: i.mimeType
21912
21912
  }));
21913
- }), this.roomNodeClient.handlePeerCapabilities(s, e), z.hasFeature(re.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), r.producers.length > 0 && k.emit(I.UPDATE_ACTIVE);
21913
+ }), this.roomNodeClient.handlePeerCapabilities(s, e), z.hasFeature(re.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), k.emit(I.UPDATE_ACTIVE);
21914
21914
  }
21915
21915
  updateParticipantsMapMinReplacement(s, t) {
21916
21916
  const e = Array.from(s.keys()), r = new Map(s), i = new Set(t), n = [];
@@ -29819,7 +29819,7 @@ let jr = (Em = class {
29819
29819
  var c;
29820
29820
  const n = $i.createContext(t, e), o = O(O({}, BP), e == null ? void 0 : e.modules);
29821
29821
  return 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", (c = e.overrides) != null ? c : {}), n.setValue("env", HP({ baseURI: i.baseURI })), n.setValue("defaults", e.defaults || { audio: true, video: true }), n.setValue("onError", e.onError || (() => {
29822
- })), n.setValue("cachedUserDetails", fs(e.cachedUserDetails)), n.setValue("sdkVersion", "3.0.2-staging.1"), n;
29822
+ })), n.setValue("cachedUserDetails", fs(e.cachedUserDetails)), n.setValue("sdkVersion", "3.0.2-staging.2"), n;
29823
29823
  }
29824
29824
  join() {
29825
29825
  return u(this, null, function* () {