@whereby.com/media 1.4.2 → 1.5.0
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.cjs +3 -7
- package/dist/index.mjs +3 -7
- package/dist/legacy-esm.js +3 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4992,13 +4992,9 @@ class VegaRtcManager {
|
|
|
4992
4992
|
}
|
|
4993
4993
|
_connect() {
|
|
4994
4994
|
const host = this._features.sfuServerOverrideHost || [this._sfuServer.url];
|
|
4995
|
-
const searchParams = new URLSearchParams({
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
roomName: this._room.name,
|
|
4999
|
-
eventClaim: this._room.isClaimed ? this._eventClaim : null,
|
|
5000
|
-
lowBw: "true",
|
|
5001
|
-
});
|
|
4995
|
+
const searchParams = new URLSearchParams(Object.assign({ clientId: this._selfId, organizationId: this._room.organizationId, roomName: this._room.name, eventClaim: this._room.isClaimed ? this._eventClaim : null, lowBw: "true" }, Object.keys(this._features || {})
|
|
4996
|
+
.filter((featureKey) => this._features[featureKey] && /^sfu/.test(featureKey))
|
|
4997
|
+
.reduce((prev, current) => (Object.assign(Object.assign({}, prev), { [current]: this._features[current] })), {})));
|
|
5002
4998
|
const queryString = searchParams.toString();
|
|
5003
4999
|
const wsUrl = `wss://${host}?${queryString}`;
|
|
5004
5000
|
this._vegaConnection = new VegaConnection(wsUrl);
|
package/dist/index.mjs
CHANGED
|
@@ -4971,13 +4971,9 @@ class VegaRtcManager {
|
|
|
4971
4971
|
}
|
|
4972
4972
|
_connect() {
|
|
4973
4973
|
const host = this._features.sfuServerOverrideHost || [this._sfuServer.url];
|
|
4974
|
-
const searchParams = new URLSearchParams({
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
roomName: this._room.name,
|
|
4978
|
-
eventClaim: this._room.isClaimed ? this._eventClaim : null,
|
|
4979
|
-
lowBw: "true",
|
|
4980
|
-
});
|
|
4974
|
+
const searchParams = new URLSearchParams(Object.assign({ clientId: this._selfId, organizationId: this._room.organizationId, roomName: this._room.name, eventClaim: this._room.isClaimed ? this._eventClaim : null, lowBw: "true" }, Object.keys(this._features || {})
|
|
4975
|
+
.filter((featureKey) => this._features[featureKey] && /^sfu/.test(featureKey))
|
|
4976
|
+
.reduce((prev, current) => (Object.assign(Object.assign({}, prev), { [current]: this._features[current] })), {})));
|
|
4981
4977
|
const queryString = searchParams.toString();
|
|
4982
4978
|
const wsUrl = `wss://${host}?${queryString}`;
|
|
4983
4979
|
this._vegaConnection = new VegaConnection(wsUrl);
|
package/dist/legacy-esm.js
CHANGED
|
@@ -4971,13 +4971,9 @@ class VegaRtcManager {
|
|
|
4971
4971
|
}
|
|
4972
4972
|
_connect() {
|
|
4973
4973
|
const host = this._features.sfuServerOverrideHost || [this._sfuServer.url];
|
|
4974
|
-
const searchParams = new URLSearchParams({
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
roomName: this._room.name,
|
|
4978
|
-
eventClaim: this._room.isClaimed ? this._eventClaim : null,
|
|
4979
|
-
lowBw: "true",
|
|
4980
|
-
});
|
|
4974
|
+
const searchParams = new URLSearchParams(Object.assign({ clientId: this._selfId, organizationId: this._room.organizationId, roomName: this._room.name, eventClaim: this._room.isClaimed ? this._eventClaim : null, lowBw: "true" }, Object.keys(this._features || {})
|
|
4975
|
+
.filter((featureKey) => this._features[featureKey] && /^sfu/.test(featureKey))
|
|
4976
|
+
.reduce((prev, current) => (Object.assign(Object.assign({}, prev), { [current]: this._features[current] })), {})));
|
|
4981
4977
|
const queryString = searchParams.toString();
|
|
4982
4978
|
const wsUrl = `wss://${host}?${queryString}`;
|
|
4983
4979
|
this._vegaConnection = new VegaConnection(wsUrl);
|