@stream-io/video-client 0.5.6 → 0.5.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 +29 -6
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +29 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +29 -6
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +2 -2
- package/dist/src/StreamVideoServerClient.d.ts +6 -1
- package/dist/src/gen/coordinator/index.d.ts +295 -0
- package/package.json +1 -1
- package/src/Call.ts +6 -5
- package/src/StreamVideoServerClient.ts +42 -0
- package/src/gen/coordinator/index.ts +299 -0
- package/src/rtc/Publisher.ts +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.5.8](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.7...@stream-io/video-client-0.5.8) (2024-02-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* external storage for recordings ([#1260](https://github.com/GetStream/stream-video-js/issues/1260)) ([50a45fc](https://github.com/GetStream/stream-video-js/commit/50a45fc6b87865f16301d6a9173c59e4774a3b31))
|
|
11
|
+
|
|
12
|
+
### [0.5.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.6...@stream-io/video-client-0.5.7) (2024-01-29)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **react-native:** no video stream from ipad ([#1253](https://github.com/GetStream/stream-video-js/issues/1253)) ([3e325ba](https://github.com/GetStream/stream-video-js/commit/3e325ba6063d7452b25bbf88829e2d8155979e6f))
|
|
18
|
+
|
|
5
19
|
### [0.5.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.5.5...@stream-io/video-client-0.5.6) (2024-01-19)
|
|
6
20
|
|
|
7
21
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -7660,9 +7660,17 @@ class Publisher {
|
|
|
7660
7660
|
: undefined;
|
|
7661
7661
|
let preferredCodec = opts.preferredCodec;
|
|
7662
7662
|
if (!preferredCodec && trackType === TrackType.VIDEO) {
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7663
|
+
if (isReactNative()) {
|
|
7664
|
+
const osName = getOSInfo()?.name.toLowerCase();
|
|
7665
|
+
if (osName === 'ios' || osName === 'ipados') {
|
|
7666
|
+
// in ipads it was noticed that if vp8 codec is used
|
|
7667
|
+
// then the bytes sent is 0 in the outbound-rtp
|
|
7668
|
+
// so we are forcing h264 codec for ipads and also in ios devices
|
|
7669
|
+
preferredCodec = 'H264';
|
|
7670
|
+
}
|
|
7671
|
+
else if (osName === 'android') {
|
|
7672
|
+
preferredCodec = 'VP8';
|
|
7673
|
+
}
|
|
7666
7674
|
}
|
|
7667
7675
|
}
|
|
7668
7676
|
const codecPreferences = this.getCodecPreferences(trackType, preferredCodec);
|
|
@@ -12109,8 +12117,8 @@ class Call {
|
|
|
12109
12117
|
/**
|
|
12110
12118
|
* Starts recording the call
|
|
12111
12119
|
*/
|
|
12112
|
-
this.startRecording = async () => {
|
|
12113
|
-
return this.streamClient.post(`${this.streamClientBasePath}/start_recording`, {});
|
|
12120
|
+
this.startRecording = async (request) => {
|
|
12121
|
+
return this.streamClient.post(`${this.streamClientBasePath}/start_recording`, request ? request : {});
|
|
12114
12122
|
};
|
|
12115
12123
|
/**
|
|
12116
12124
|
* Stops recording the call
|
|
@@ -14233,7 +14241,7 @@ class StreamClient {
|
|
|
14233
14241
|
});
|
|
14234
14242
|
};
|
|
14235
14243
|
this.getUserAgent = () => {
|
|
14236
|
-
const version = "0.5.
|
|
14244
|
+
const version = "0.5.8" ;
|
|
14237
14245
|
return (this.userAgent ||
|
|
14238
14246
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
14239
14247
|
};
|
|
@@ -14756,6 +14764,21 @@ class StreamVideoServerClient extends StreamVideoClient {
|
|
|
14756
14764
|
this.updateCallType = (name, data) => {
|
|
14757
14765
|
return this.streamClient.put(`/calltypes/${name}`, data);
|
|
14758
14766
|
};
|
|
14767
|
+
this.listExternalStorage = () => {
|
|
14768
|
+
return this.streamClient.get('/external_storage');
|
|
14769
|
+
};
|
|
14770
|
+
this.createExternalStorage = (request) => {
|
|
14771
|
+
return this.streamClient.post('/external_storage', request);
|
|
14772
|
+
};
|
|
14773
|
+
this.deleteExternalStorage = (name) => {
|
|
14774
|
+
return this.streamClient.delete(`/external_storage/${name}`);
|
|
14775
|
+
};
|
|
14776
|
+
this.updateExternalStorage = (name, request) => {
|
|
14777
|
+
return this.streamClient.put(`/external_storage/${name}`, request);
|
|
14778
|
+
};
|
|
14779
|
+
this.checkExternalStorage = (name) => {
|
|
14780
|
+
return this.streamClient.get(`/external_storage/${name}/check`);
|
|
14781
|
+
};
|
|
14759
14782
|
}
|
|
14760
14783
|
/**
|
|
14761
14784
|
* createToken - Creates a token to authenticate this user. This function is used server side.
|