@stream-io/video-client 0.1.6 → 0.1.8
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/CHANGELOG.md +14 -0
- package/dist/index.browser.es.js +17 -9
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +17 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17 -9
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +9 -1
- package/dist/src/coordinator/connection/client.d.ts +3 -3
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +11 -1
- package/src/__tests__/server-side/call-types.test.ts +11 -1
- package/src/__tests__/server-side/call.test.ts +1 -1
- package/src/coordinator/connection/client.ts +18 -6
package/dist/index.es.js
CHANGED
|
@@ -9542,6 +9542,14 @@ class Call {
|
|
|
9542
9542
|
}
|
|
9543
9543
|
return response;
|
|
9544
9544
|
});
|
|
9545
|
+
/**
|
|
9546
|
+
* Creates a call
|
|
9547
|
+
*
|
|
9548
|
+
* @param data the data to create the call with.
|
|
9549
|
+
*/
|
|
9550
|
+
this.create = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
9551
|
+
return this.getOrCreate(data);
|
|
9552
|
+
});
|
|
9545
9553
|
/**
|
|
9546
9554
|
* A shortcut for {@link Call.get} with `ring` parameter set to `true`.
|
|
9547
9555
|
* Will send a `call.ring` event to the call members.
|
|
@@ -10271,8 +10279,8 @@ class Call {
|
|
|
10271
10279
|
/**
|
|
10272
10280
|
* Starts the livestreaming of the call.
|
|
10273
10281
|
*/
|
|
10274
|
-
this.goLive = () => __awaiter(this, void 0, void 0, function* () {
|
|
10275
|
-
return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {});
|
|
10282
|
+
this.goLive = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
10283
|
+
return this.streamClient.post(`${this.streamClientBasePath}/go_live`, {}, params);
|
|
10276
10284
|
});
|
|
10277
10285
|
/**
|
|
10278
10286
|
* Stops the livestreaming of the call.
|
|
@@ -11640,7 +11648,7 @@ class WSConnectionFallback {
|
|
|
11640
11648
|
}
|
|
11641
11649
|
}
|
|
11642
11650
|
|
|
11643
|
-
const version = '0.1.
|
|
11651
|
+
const version = '0.1.8';
|
|
11644
11652
|
|
|
11645
11653
|
const logger = getLogger(['location']);
|
|
11646
11654
|
const HINT_URL = `https://hint.stream-io-video.com/`;
|
|
@@ -11981,14 +11989,14 @@ class StreamClient {
|
|
|
11981
11989
|
params,
|
|
11982
11990
|
});
|
|
11983
11991
|
};
|
|
11984
|
-
this.put = (url, data) => {
|
|
11985
|
-
return this.doAxiosRequest('put', url, data);
|
|
11992
|
+
this.put = (url, data, params) => {
|
|
11993
|
+
return this.doAxiosRequest('put', url, data, { params });
|
|
11986
11994
|
};
|
|
11987
|
-
this.post = (url, data) => {
|
|
11988
|
-
return this.doAxiosRequest('post', url, data);
|
|
11995
|
+
this.post = (url, data, params) => {
|
|
11996
|
+
return this.doAxiosRequest('post', url, data, { params });
|
|
11989
11997
|
};
|
|
11990
|
-
this.patch = (url, data) => {
|
|
11991
|
-
return this.doAxiosRequest('patch', url, data);
|
|
11998
|
+
this.patch = (url, data, params) => {
|
|
11999
|
+
return this.doAxiosRequest('patch', url, data, { params });
|
|
11992
12000
|
};
|
|
11993
12001
|
this.delete = (url, params) => {
|
|
11994
12002
|
return this.doAxiosRequest('delete', url, null, {
|