@stream-io/video-client 0.0.2-alpha.1 → 0.0.2-alpha.3
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 +13 -0
- package/dist/index.browser.es.js +14 -8
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +14 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +14 -8
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +16 -11
- package/package.json +1 -1
- package/src/Call.ts +49 -24
package/dist/index.es.js
CHANGED
|
@@ -8585,7 +8585,6 @@ class Call {
|
|
|
8585
8585
|
* @param data the request data.
|
|
8586
8586
|
*/
|
|
8587
8587
|
this.updateCallMembers = (data) => __awaiter(this, void 0, void 0, function* () {
|
|
8588
|
-
// FIXME: OL: implement kick-users
|
|
8589
8588
|
return this.streamClient.post(`${this.streamClientBasePath}/members`, data);
|
|
8590
8589
|
});
|
|
8591
8590
|
/**
|
|
@@ -9094,13 +9093,20 @@ class Call {
|
|
|
9094
9093
|
});
|
|
9095
9094
|
};
|
|
9096
9095
|
/**
|
|
9097
|
-
*
|
|
9098
|
-
* Updates the call state with
|
|
9096
|
+
* Retrieves the list of recordings for the current call or call session.
|
|
9097
|
+
* Updates the call state with the returned array of CallRecording objects.
|
|
9098
|
+
*
|
|
9099
|
+
* If `callSessionId` is provided, it will return the recordings for that call session.
|
|
9100
|
+
* Otherwise, all recordings for the current call will be returned.
|
|
9101
|
+
*
|
|
9102
|
+
* @param callSessionId the call session id to retrieve recordings for.
|
|
9099
9103
|
*/
|
|
9100
|
-
this.queryRecordings = () => __awaiter(this, void 0, void 0, function* () {
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
+
this.queryRecordings = (callSessionId) => __awaiter(this, void 0, void 0, function* () {
|
|
9105
|
+
let endpoint = this.streamClientBasePath;
|
|
9106
|
+
if (callSessionId) {
|
|
9107
|
+
endpoint = `${endpoint}/${callSessionId}`;
|
|
9108
|
+
}
|
|
9109
|
+
const response = yield this.streamClient.get(`${endpoint}/recordings`);
|
|
9104
9110
|
this.state.setCallRecordingsList(response.recordings);
|
|
9105
9111
|
return response;
|
|
9106
9112
|
});
|
|
@@ -10874,7 +10880,7 @@ class StreamClient {
|
|
|
10874
10880
|
}
|
|
10875
10881
|
getUserAgent() {
|
|
10876
10882
|
return (this.userAgent ||
|
|
10877
|
-
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.
|
|
10883
|
+
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.2-alpha.2"}`);
|
|
10878
10884
|
}
|
|
10879
10885
|
setUserAgent(userAgent) {
|
|
10880
10886
|
this.userAgent = userAgent;
|