@whereby.com/media 2.6.0 → 2.6.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.cjs CHANGED
@@ -1186,6 +1186,7 @@ function subscribeStats(subscription, options = OPTIONS, state = STATE) {
1186
1186
 
1187
1187
  const PROTOCOL_REQUESTS = {
1188
1188
  BLOCK_CLIENT: "block_client",
1189
+ CANCEL_ROOM_KNOCK: "cancel_room_knock",
1189
1190
  CLAIM_ROOM: "claim_room",
1190
1191
  CLEAR_CHAT_HISTORY: "clear_chat_history",
1191
1192
  ENABLE_AUDIO: "enable_audio",
@@ -4569,8 +4570,10 @@ class VegaRtcManager {
4569
4570
  iceServers: this._features.turnServersOn ? this._turnServers : this._iceServers,
4570
4571
  };
4571
4572
  iceServersList.iceServers = turnServerOverride(iceServersList.iceServers, this._features.turnServerOverrideHost);
4572
- (_b = this._sendTransport) === null || _b === void 0 ? void 0 : _b.updateIceServers(iceServersList);
4573
- (_c = this._receiveTransport) === null || _c === void 0 ? void 0 : _c.updateIceServers(iceServersList);
4573
+ if (browserName !== "firefox") {
4574
+ (_b = this._sendTransport) === null || _b === void 0 ? void 0 : _b.updateIceServers(iceServersList);
4575
+ (_c = this._receiveTransport) === null || _c === void 0 ? void 0 : _c.updateIceServers(iceServersList);
4576
+ }
4574
4577
  this._clearMediaServersRefresh();
4575
4578
  if (!mediaserverConfigTtlSeconds) {
4576
4579
  return;
package/dist/index.d.cts CHANGED
@@ -1697,6 +1697,7 @@ declare const TYPES: {
1697
1697
 
1698
1698
  declare const PROTOCOL_REQUESTS: {
1699
1699
  BLOCK_CLIENT: string;
1700
+ CANCEL_ROOM_KNOCK: string;
1700
1701
  CLAIM_ROOM: string;
1701
1702
  CLEAR_CHAT_HISTORY: string;
1702
1703
  ENABLE_AUDIO: string;
package/dist/index.d.mts CHANGED
@@ -1697,6 +1697,7 @@ declare const TYPES: {
1697
1697
 
1698
1698
  declare const PROTOCOL_REQUESTS: {
1699
1699
  BLOCK_CLIENT: string;
1700
+ CANCEL_ROOM_KNOCK: string;
1700
1701
  CLAIM_ROOM: string;
1701
1702
  CLEAR_CHAT_HISTORY: string;
1702
1703
  ENABLE_AUDIO: string;
package/dist/index.d.ts CHANGED
@@ -1697,6 +1697,7 @@ declare const TYPES: {
1697
1697
 
1698
1698
  declare const PROTOCOL_REQUESTS: {
1699
1699
  BLOCK_CLIENT: string;
1700
+ CANCEL_ROOM_KNOCK: string;
1700
1701
  CLAIM_ROOM: string;
1701
1702
  CLEAR_CHAT_HISTORY: string;
1702
1703
  ENABLE_AUDIO: string;
package/dist/index.mjs CHANGED
@@ -1165,6 +1165,7 @@ function subscribeStats(subscription, options = OPTIONS, state = STATE) {
1165
1165
 
1166
1166
  const PROTOCOL_REQUESTS = {
1167
1167
  BLOCK_CLIENT: "block_client",
1168
+ CANCEL_ROOM_KNOCK: "cancel_room_knock",
1168
1169
  CLAIM_ROOM: "claim_room",
1169
1170
  CLEAR_CHAT_HISTORY: "clear_chat_history",
1170
1171
  ENABLE_AUDIO: "enable_audio",
@@ -4548,8 +4549,10 @@ class VegaRtcManager {
4548
4549
  iceServers: this._features.turnServersOn ? this._turnServers : this._iceServers,
4549
4550
  };
4550
4551
  iceServersList.iceServers = turnServerOverride(iceServersList.iceServers, this._features.turnServerOverrideHost);
4551
- (_b = this._sendTransport) === null || _b === void 0 ? void 0 : _b.updateIceServers(iceServersList);
4552
- (_c = this._receiveTransport) === null || _c === void 0 ? void 0 : _c.updateIceServers(iceServersList);
4552
+ if (browserName !== "firefox") {
4553
+ (_b = this._sendTransport) === null || _b === void 0 ? void 0 : _b.updateIceServers(iceServersList);
4554
+ (_c = this._receiveTransport) === null || _c === void 0 ? void 0 : _c.updateIceServers(iceServersList);
4555
+ }
4553
4556
  this._clearMediaServersRefresh();
4554
4557
  if (!mediaserverConfigTtlSeconds) {
4555
4558
  return;
@@ -1165,6 +1165,7 @@ function subscribeStats(subscription, options = OPTIONS, state = STATE) {
1165
1165
 
1166
1166
  const PROTOCOL_REQUESTS = {
1167
1167
  BLOCK_CLIENT: "block_client",
1168
+ CANCEL_ROOM_KNOCK: "cancel_room_knock",
1168
1169
  CLAIM_ROOM: "claim_room",
1169
1170
  CLEAR_CHAT_HISTORY: "clear_chat_history",
1170
1171
  ENABLE_AUDIO: "enable_audio",
@@ -4548,8 +4549,10 @@ class VegaRtcManager {
4548
4549
  iceServers: this._features.turnServersOn ? this._turnServers : this._iceServers,
4549
4550
  };
4550
4551
  iceServersList.iceServers = turnServerOverride(iceServersList.iceServers, this._features.turnServerOverrideHost);
4551
- (_b = this._sendTransport) === null || _b === void 0 ? void 0 : _b.updateIceServers(iceServersList);
4552
- (_c = this._receiveTransport) === null || _c === void 0 ? void 0 : _c.updateIceServers(iceServersList);
4552
+ if (browserName !== "firefox") {
4553
+ (_b = this._sendTransport) === null || _b === void 0 ? void 0 : _b.updateIceServers(iceServersList);
4554
+ (_c = this._receiveTransport) === null || _c === void 0 ? void 0 : _c.updateIceServers(iceServersList);
4555
+ }
4553
4556
  this._clearMediaServersRefresh();
4554
4557
  if (!mediaserverConfigTtlSeconds) {
4555
4558
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@whereby.com/media",
3
3
  "description": "Media library for Whereby",
4
- "version": "2.6.0",
4
+ "version": "2.6.2",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/whereby/sdk",
7
7
  "repository": {