@stream-io/video-client 1.10.1 → 1.10.2
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 +7 -0
- package/dist/index.browser.es.js +5 -4
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +5 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/devices/InputMediaDeviceManager.ts +3 -3
- package/src/devices/__tests__/InputMediaDeviceManager.test.ts +23 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.10.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.10.1...@stream-io/video-client-1.10.2) (2024-11-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* camera not enabled on foreground notifications ([#1546](https://github.com/GetStream/stream-video-js/issues/1546)) ([67c920a](https://github.com/GetStream/stream-video-js/commit/67c920ac4bca35a414b88f6c9829b08396a6260b))
|
|
11
|
+
|
|
5
12
|
## [1.10.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.10.0...@stream-io/video-client-1.10.1) (2024-10-30)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -3108,7 +3108,7 @@ const retryable = async (rpc, signal) => {
|
|
|
3108
3108
|
return result;
|
|
3109
3109
|
};
|
|
3110
3110
|
|
|
3111
|
-
const version = "1.10.
|
|
3111
|
+
const version = "1.10.2";
|
|
3112
3112
|
const [major, minor, patch] = version.split('.');
|
|
3113
3113
|
let sdkInfo = {
|
|
3114
3114
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -8224,6 +8224,7 @@ class InputMediaDeviceManager {
|
|
|
8224
8224
|
* Starts stream.
|
|
8225
8225
|
*/
|
|
8226
8226
|
async enable() {
|
|
8227
|
+
this.state.prevStatus = this.state.optimisticStatus;
|
|
8227
8228
|
if (this.state.optimisticStatus === 'enabled') {
|
|
8228
8229
|
return;
|
|
8229
8230
|
}
|
|
@@ -8245,7 +8246,7 @@ class InputMediaDeviceManager {
|
|
|
8245
8246
|
* @param {boolean} [forceStop=false] when true, stops the tracks regardless of the state.disableMode
|
|
8246
8247
|
*/
|
|
8247
8248
|
async disable(forceStop = false) {
|
|
8248
|
-
this.state.prevStatus = this.state.
|
|
8249
|
+
this.state.prevStatus = this.state.optimisticStatus;
|
|
8249
8250
|
if (!forceStop && this.state.optimisticStatus === 'disabled') {
|
|
8250
8251
|
return;
|
|
8251
8252
|
}
|
|
@@ -8274,7 +8275,7 @@ class InputMediaDeviceManager {
|
|
|
8274
8275
|
*/
|
|
8275
8276
|
async resume() {
|
|
8276
8277
|
if (this.state.prevStatus === 'enabled' &&
|
|
8277
|
-
this.state.status
|
|
8278
|
+
this.state.status !== 'enabled') {
|
|
8278
8279
|
await this.enable();
|
|
8279
8280
|
}
|
|
8280
8281
|
}
|
|
@@ -12695,7 +12696,7 @@ class StreamClient {
|
|
|
12695
12696
|
});
|
|
12696
12697
|
};
|
|
12697
12698
|
this.getUserAgent = () => {
|
|
12698
|
-
const version = "1.10.
|
|
12699
|
+
const version = "1.10.2";
|
|
12699
12700
|
return (this.userAgent ||
|
|
12700
12701
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
12701
12702
|
};
|