@decartai/sdk 0.0.15 → 0.0.16

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.
@@ -41,7 +41,7 @@ const createRealTimeClient = (opts) => {
41
41
  eventEmitter.emit("error", createWebrtcError(error));
42
42
  },
43
43
  customizeOffer: options.customizeOffer,
44
- vp8MinBitrate: 200,
44
+ vp8MinBitrate: 300,
45
45
  vp8StartBitrate: 600
46
46
  });
47
47
  await webrtcManager.connect(stream);
@@ -11,7 +11,7 @@ var WebRTCConnection = class {
11
11
  constructor(callbacks = {}) {
12
12
  this.callbacks = callbacks;
13
13
  }
14
- async connect(url, localStream, timeout = 35e3, integration) {
14
+ async connect(url, localStream, timeout = 6e4, integration) {
15
15
  const deadline = Date.now() + timeout;
16
16
  this.localStream = localStream;
17
17
  const userAgent = encodeURIComponent(buildUserAgent(integration));
@@ -26,7 +26,7 @@ var WebRTCManager = class {
26
26
  }
27
27
  async connect(localStream) {
28
28
  return pRetry(async () => {
29
- await this.connection.connect(this.config.webrtcUrl, localStream, 25e3, this.config.integration);
29
+ await this.connection.connect(this.config.webrtcUrl, localStream, 6e4, this.config.integration);
30
30
  return true;
31
31
  }, {
32
32
  retries: 5,
package/dist/version.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Injected at build time from package.json.
5
5
  * Falls back to '0.0.0-dev' in development.
6
6
  */
7
- const VERSION = "0.0.15";
7
+ const VERSION = "0.0.16";
8
8
 
9
9
  //#endregion
10
10
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decartai/sdk",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "Decart's JavaScript SDK",
5
5
  "type": "module",
6
6
  "license": "MIT",