@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/dist/index.es.js
CHANGED
|
@@ -3298,7 +3298,7 @@ const retryable = async (rpc, signal) => {
|
|
|
3298
3298
|
return result;
|
|
3299
3299
|
};
|
|
3300
3300
|
|
|
3301
|
-
const version = "1.11.
|
|
3301
|
+
const version = "1.11.14";
|
|
3302
3302
|
const [major, minor, patch] = version.split('.');
|
|
3303
3303
|
let sdkInfo = {
|
|
3304
3304
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -8313,7 +8313,7 @@ class BrowserPermission {
|
|
|
8313
8313
|
return this.state;
|
|
8314
8314
|
}
|
|
8315
8315
|
async prompt({ forcePrompt = false, throwOnNotAllowed = false, } = {}) {
|
|
8316
|
-
await withoutConcurrency(`permission-prompt-${this.permission.queryName}`, async () => {
|
|
8316
|
+
return await withoutConcurrency(`permission-prompt-${this.permission.queryName}`, async () => {
|
|
8317
8317
|
if ((await this.getState()) !== 'prompt' ||
|
|
8318
8318
|
(this.wasPrompted && !forcePrompt)) {
|
|
8319
8319
|
const isGranted = this.state === 'granted';
|
|
@@ -8388,8 +8388,7 @@ const getDevices = (permission, kind) => {
|
|
|
8388
8388
|
// for privacy reasons, most browsers don't give you device labels
|
|
8389
8389
|
// unless you have a corresponding camera or microphone permission
|
|
8390
8390
|
const shouldPromptForBrowserPermission = devices.some((device) => device.kind === kind && device.label === '');
|
|
8391
|
-
if (shouldPromptForBrowserPermission) {
|
|
8392
|
-
await permission.prompt({ throwOnNotAllowed: true });
|
|
8391
|
+
if (shouldPromptForBrowserPermission && (await permission.prompt())) {
|
|
8393
8392
|
devices = await navigator.mediaDevices.enumerateDevices();
|
|
8394
8393
|
}
|
|
8395
8394
|
return devices.filter((device) => device.kind === kind &&
|
|
@@ -12774,7 +12773,7 @@ class StreamClient {
|
|
|
12774
12773
|
return await this.wsConnection.connect(this.defaultWSTimeout);
|
|
12775
12774
|
};
|
|
12776
12775
|
this.getUserAgent = () => {
|
|
12777
|
-
const version = "1.11.
|
|
12776
|
+
const version = "1.11.14";
|
|
12778
12777
|
return (this.userAgent ||
|
|
12779
12778
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
12780
12779
|
};
|