@stream-io/video-client 1.11.13 → 1.11.14
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 +4 -5
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +4 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -5
- package/dist/index.es.js.map +1 -1
- package/dist/src/devices/BrowserPermission.d.ts +1 -1
- package/package.json +1 -1
- package/src/devices/BrowserPermission.ts +1 -1
- package/src/devices/devices.ts +1 -2
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.11.14](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.13...@stream-io/video-client-1.11.14) (2024-12-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* prevent device list observable from erroring ([#1608](https://github.com/GetStream/stream-video-js/issues/1608)) ([06af3e7](https://github.com/GetStream/stream-video-js/commit/06af3e7e03b63551c781512c797ac10c0486d0c7))
|
|
11
|
+
|
|
5
12
|
## [1.11.13](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.11.12...@stream-io/video-client-1.11.13) (2024-12-03)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -3297,7 +3297,7 @@ const retryable = async (rpc, signal) => {
|
|
|
3297
3297
|
return result;
|
|
3298
3298
|
};
|
|
3299
3299
|
|
|
3300
|
-
const version = "1.11.
|
|
3300
|
+
const version = "1.11.14";
|
|
3301
3301
|
const [major, minor, patch] = version.split('.');
|
|
3302
3302
|
let sdkInfo = {
|
|
3303
3303
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -8312,7 +8312,7 @@ class BrowserPermission {
|
|
|
8312
8312
|
return this.state;
|
|
8313
8313
|
}
|
|
8314
8314
|
async prompt({ forcePrompt = false, throwOnNotAllowed = false, } = {}) {
|
|
8315
|
-
await withoutConcurrency(`permission-prompt-${this.permission.queryName}`, async () => {
|
|
8315
|
+
return await withoutConcurrency(`permission-prompt-${this.permission.queryName}`, async () => {
|
|
8316
8316
|
if ((await this.getState()) !== 'prompt' ||
|
|
8317
8317
|
(this.wasPrompted && !forcePrompt)) {
|
|
8318
8318
|
const isGranted = this.state === 'granted';
|
|
@@ -8387,8 +8387,7 @@ const getDevices = (permission, kind) => {
|
|
|
8387
8387
|
// for privacy reasons, most browsers don't give you device labels
|
|
8388
8388
|
// unless you have a corresponding camera or microphone permission
|
|
8389
8389
|
const shouldPromptForBrowserPermission = devices.some((device) => device.kind === kind && device.label === '');
|
|
8390
|
-
if (shouldPromptForBrowserPermission) {
|
|
8391
|
-
await permission.prompt({ throwOnNotAllowed: true });
|
|
8390
|
+
if (shouldPromptForBrowserPermission && (await permission.prompt())) {
|
|
8392
8391
|
devices = await navigator.mediaDevices.enumerateDevices();
|
|
8393
8392
|
}
|
|
8394
8393
|
return devices.filter((device) => device.kind === kind &&
|
|
@@ -12775,7 +12774,7 @@ class StreamClient {
|
|
|
12775
12774
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
12776
12775
|
};
|
|
12777
12776
|
this.getUserAgent = () => {
|
|
12778
|
-
const version = "1.11.
|
|
12777
|
+
const version = "1.11.14";
|
|
12779
12778
|
return (this.userAgent ||
|
|
12780
12779
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
12781
12780
|
};
|