@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.
package/dist/realtime/client.js
CHANGED
|
@@ -41,7 +41,7 @@ const createRealTimeClient = (opts) => {
|
|
|
41
41
|
eventEmitter.emit("error", createWebrtcError(error));
|
|
42
42
|
},
|
|
43
43
|
customizeOffer: options.customizeOffer,
|
|
44
|
-
vp8MinBitrate:
|
|
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 =
|
|
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,
|
|
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