@signalwire/js 4.0.0-dev-20260311183522 → 4.0.0-dev-20260311213302
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/browser.mjs +6 -4
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +6 -4
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -12425,6 +12425,9 @@ var CallEventsManager = class extends Destroyable {
|
|
|
12425
12425
|
get participants$() {
|
|
12426
12426
|
return this.cachedObservable("participants$", () => this._participants$.asObservable().pipe((0, import_cjs$14.map)((participantsRecord) => Object.values(participantsRecord))));
|
|
12427
12427
|
}
|
|
12428
|
+
get participants() {
|
|
12429
|
+
return Object.values(this._participants$.value);
|
|
12430
|
+
}
|
|
12428
12431
|
get self$() {
|
|
12429
12432
|
return this.cachedObservable("self$", () => this._self$.asObservable().pipe(filterNull()));
|
|
12430
12433
|
}
|
|
@@ -14629,7 +14632,6 @@ var WebRTCCall = class extends Destroyable {
|
|
|
14629
14632
|
this.clientSession = clientSession;
|
|
14630
14633
|
this.options = options;
|
|
14631
14634
|
this.address = address;
|
|
14632
|
-
this.participantsMap = /* @__PURE__ */ new Map();
|
|
14633
14635
|
this._errors$ = this.createSubject();
|
|
14634
14636
|
this._answered$ = this.createReplaySubject();
|
|
14635
14637
|
this._holdState = false;
|
|
@@ -14702,7 +14704,7 @@ var WebRTCCall = class extends Destroyable {
|
|
|
14702
14704
|
}
|
|
14703
14705
|
/** Current snapshot of all participants in the call. */
|
|
14704
14706
|
get participants() {
|
|
14705
|
-
return
|
|
14707
|
+
return this.callEventsManager.participants;
|
|
14706
14708
|
}
|
|
14707
14709
|
/** The local participant, or `null` if not yet joined. */
|
|
14708
14710
|
get self() {
|
|
@@ -15030,7 +15032,6 @@ var WebRTCCall = class extends Destroyable {
|
|
|
15030
15032
|
this._status$.next("destroyed");
|
|
15031
15033
|
this.vertoManager.destroy();
|
|
15032
15034
|
this.callEventsManager.destroy();
|
|
15033
|
-
this.participantsMap.clear();
|
|
15034
15035
|
super.destroy();
|
|
15035
15036
|
}
|
|
15036
15037
|
};
|
|
@@ -16388,7 +16389,8 @@ const buildOptionsFromDestination = (destination) => {
|
|
|
16388
16389
|
const channel = new URLSearchParams(queryString).get("channel");
|
|
16389
16390
|
if (channel === "video") return {
|
|
16390
16391
|
audio: true,
|
|
16391
|
-
video: true
|
|
16392
|
+
video: true,
|
|
16393
|
+
receiveVideo: true
|
|
16392
16394
|
};
|
|
16393
16395
|
else if (channel === "audio") return {
|
|
16394
16396
|
audio: true,
|