Preload media devices to avoid later delay

Co-authored-by: ayumi yu <ayumi@signal.org>
This commit is contained in:
Jim Gustafson 2023-11-01 11:03:08 -07:00 committed by GitHub
parent 6d216a3eca
commit 59a4f237fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 0 deletions

3
ts/window.d.ts vendored
View file

@ -66,6 +66,9 @@ export type IPCType = {
};
drawAttention: () => void;
getAutoLaunch: () => Promise<boolean>;
getMediaAccessStatus: (
mediaType: 'screen' | 'microphone' | 'camera'
) => Promise<string | undefined>;
getMediaCameraPermissions: () => Promise<boolean>;
getMediaPermissions: () => Promise<boolean>;
logAppLoadedEvent?: (options: { processedCount?: number }) => void;