@signalwire/js 4.0.0-dev-20260304121917 → 4.0.0-dev-20260304162726
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 +16 -1
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +16 -1
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +16 -1
- 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 +16 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -13847,7 +13847,10 @@ function isVertoAttachMessage(value) {
|
|
|
13847
13847
|
return value.method === "verto.attach";
|
|
13848
13848
|
}
|
|
13849
13849
|
function isVertoAnswerInnerParams(value) {
|
|
13850
|
-
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.answer" && isObject(value.params) && hasProperty(value.params, "callID")
|
|
13850
|
+
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.answer" && isObject(value.params) && hasProperty(value.params, "callID");
|
|
13851
|
+
}
|
|
13852
|
+
function isVertoMediaInnerParams(value) {
|
|
13853
|
+
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.media" && isObject(value.params) && hasProperty(value.params, "callID") && hasProperty(value.params, "sdp");
|
|
13851
13854
|
}
|
|
13852
13855
|
function isVertoMediaParamsInnerParams(value) {
|
|
13853
13856
|
return isObject(value) && hasProperty(value, "jsonrpc") && value.jsonrpc === "2.0" && hasProperty(value, "method") && value.method === "verto.mediaParams" && isObject(value.params) && hasProperty(value.params, "mediaParams");
|
|
@@ -13957,6 +13960,14 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
13957
13960
|
].includes(connectionState)))));
|
|
13958
13961
|
}
|
|
13959
13962
|
initSubscriptions() {
|
|
13963
|
+
this.subscribeTo(this.vertoMedia$, (event) => {
|
|
13964
|
+
logger$10.debug("[WebRTCManager] Received Verto media event (early media SDP):", event);
|
|
13965
|
+
const { sdp, callID } = event;
|
|
13966
|
+
this._rtcPeerConnectionsMap.get(callID)?.updateAnswerStatus({
|
|
13967
|
+
status: "received",
|
|
13968
|
+
sdp
|
|
13969
|
+
});
|
|
13970
|
+
});
|
|
13960
13971
|
this.subscribeTo(this.vertoAnswer$, (event) => {
|
|
13961
13972
|
logger$10.debug("[WebRTCManager] Received Verto answer event:", event);
|
|
13962
13973
|
const { sdp } = event;
|
|
@@ -14001,6 +14012,9 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
14001
14012
|
get selfId() {
|
|
14002
14013
|
return this._selfId$.value;
|
|
14003
14014
|
}
|
|
14015
|
+
get vertoMedia$() {
|
|
14016
|
+
return this.webRtcCallSession.webrtcMessages$.pipe(filterAs(isVertoMediaInnerParams, "params"), (0, import_cjs$10.takeUntil)(this.destroyed$));
|
|
14017
|
+
}
|
|
14004
14018
|
get vertoAnswer$() {
|
|
14005
14019
|
return this.cachedObservable("vertoAnswer$", () => this.webRtcCallSession.webrtcMessages$.pipe(filterAs(isVertoAnswerInnerParams, "params"), (0, import_cjs$10.takeUntil)(this.destroyed$)));
|
|
14006
14020
|
}
|
|
@@ -14179,6 +14193,7 @@ var WebRTCVertoManager = class extends VertoManager {
|
|
|
14179
14193
|
}
|
|
14180
14194
|
setupVertoByeHandler() {
|
|
14181
14195
|
this.subscribeTo(this.vertoBye$, () => {
|
|
14196
|
+
this._signalingStatus$.next("disconnected");
|
|
14182
14197
|
this.attachManager.detach(this.webRtcCallSession);
|
|
14183
14198
|
this.callSession?.destroy();
|
|
14184
14199
|
});
|