@fraku/video 0.1.67 → 0.1.69
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/dist/i18n/locales/ca.json.d.ts +2 -0
- package/dist/i18n/locales/de.json.d.ts +2 -0
- package/dist/i18n/locales/en.json.d.ts +2 -0
- package/dist/i18n/locales/es.json.d.ts +2 -0
- package/dist/i18n/locales/fr.json.d.ts +2 -0
- package/dist/index.cjs +150 -150
- package/dist/index.js +11787 -11717
- package/dist/providers/VideoProvider/context.d.ts +1 -0
- package/dist/providers/VideoProvider/tests/useVirtualBackground.test.d.ts +1 -0
- package/dist/providers/VideoProvider/useVirtualBackground.d.ts +1 -0
- package/dist/providers/VideoProvider/utils.d.ts +6 -0
- package/package.json +1 -1
|
@@ -40,6 +40,7 @@ export type VideoContextType = {
|
|
|
40
40
|
switchCamera: (deviceId: string) => Promise<void>;
|
|
41
41
|
uploadBackgroundImage: (file: File) => Promise<void>;
|
|
42
42
|
virtualBackground: VirtualBackgroundState;
|
|
43
|
+
isVirtualBackgroundSupported: boolean;
|
|
43
44
|
};
|
|
44
45
|
export declare const VideoContext: import('react').Context<VideoContextType | null>;
|
|
45
46
|
export declare const useVideoContext: () => VideoContextType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,5 +17,6 @@ export declare const useVirtualBackground: ({ zmClient, sessionStarted, isSessio
|
|
|
17
17
|
setVirtualBackgroundMode: (mode: VirtualBackgroundMode, imageId?: string) => Promise<void>;
|
|
18
18
|
uploadBackgroundImage: (file: File) => Promise<void>;
|
|
19
19
|
removeBackgroundImage: (imageId: string) => Promise<void>;
|
|
20
|
+
resetVirtualBackgroundMode: () => void;
|
|
20
21
|
};
|
|
21
22
|
export {};
|
|
@@ -61,6 +61,12 @@ export declare const saveCustomImagesToLocalStorage: (images: CustomBackgroundIm
|
|
|
61
61
|
* @returns Array of custom background images, or empty array if none found
|
|
62
62
|
*/
|
|
63
63
|
export declare const loadCustomImagesFromLocalStorage: () => CustomBackgroundImage[];
|
|
64
|
+
/**
|
|
65
|
+
* Checks whether a Zoom SDK error indicates virtual background is not supported
|
|
66
|
+
* on the current platform (errorCode 6107 — SharedArrayBuffer unavailable).
|
|
67
|
+
* After this error the SDK already closes the camera track internally.
|
|
68
|
+
*/
|
|
69
|
+
export declare const isVirtualBackgroundUnsupportedError: (error: unknown) => boolean;
|
|
64
70
|
/**
|
|
65
71
|
* Clears all custom background images from localStorage
|
|
66
72
|
*/
|