@fraku/video 0.1.0 → 0.1.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/dist/VideoPlugin.d.ts +4 -7
- package/dist/VideoPlugin.stories.d.ts +2 -4
- package/dist/VideoPluginProvider.d.ts +1 -1
- package/dist/context.d.ts +4 -2
- package/dist/index.cjs +186 -186
- package/dist/index.d.ts +0 -1
- package/dist/index.js +12319 -12188
- package/dist/pages/MainSessionPage/context.d.ts +6 -0
- package/package.json +1 -1
- package/dist/hooks/useIsMobile.d.ts +0 -2
- package/dist/index.css +0 -1
package/dist/VideoPlugin.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { VideoPluginProps } from './types';
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
type VideoPluginHandle = {
|
|
4
4
|
sessionStarted: boolean;
|
|
5
|
-
initSession: () => Promise<void>;
|
|
6
5
|
joinSession: () => Promise<void>;
|
|
7
|
-
|
|
8
|
-
stopVideo: () => Promise<void>;
|
|
9
|
-
stopSession: () => Promise<void>;
|
|
6
|
+
leaveSession: () => Promise<void>;
|
|
10
7
|
};
|
|
11
|
-
export declare const VideoPlugin: (
|
|
12
|
-
export type VideoPlugin =
|
|
8
|
+
export declare const VideoPlugin: import('react').ForwardRefExoticComponent<VideoPluginProps & import('react').RefAttributes<VideoPluginHandle>>;
|
|
9
|
+
export type VideoPlugin = VideoPluginHandle;
|
|
13
10
|
export default VideoPlugin;
|
|
@@ -5,7 +5,5 @@ declare const _default: {
|
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
storyName: string;
|
|
11
|
-
};
|
|
8
|
+
export declare const WithMockChatMessages: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const InsideModalDialog: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,5 +7,5 @@ type VideoPluginProviderProps = {
|
|
|
7
7
|
messages?: ChatMessage[];
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare const VideoPluginProvider: (
|
|
10
|
+
declare const VideoPluginProvider: import('react').ForwardRefExoticComponent<VideoPluginProviderProps & import('react').RefAttributes<unknown>>;
|
|
11
11
|
export default VideoPluginProvider;
|
package/dist/context.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export declare const zmClient: typeof import('@zoom/videosdk').VideoClient;
|
|
|
4
4
|
export type ZoomVideoContextType = {
|
|
5
5
|
sessionStarted: boolean;
|
|
6
6
|
videoStarted: boolean;
|
|
7
|
-
|
|
7
|
+
activeCameraId: string;
|
|
8
|
+
activeMicId: string;
|
|
8
9
|
cameraList: MediaDevice[];
|
|
9
10
|
speakerList: MediaDevice[];
|
|
10
11
|
micList: MediaDevice[];
|
|
@@ -15,8 +16,9 @@ export type ZoomVideoContextType = {
|
|
|
15
16
|
leaveSession: () => Promise<void>;
|
|
16
17
|
attachUserVideo: (userId: number, videoElement: VideoPlayer) => Promise<void>;
|
|
17
18
|
detachUserVideo: (userId: number) => Promise<void>;
|
|
18
|
-
startVideo: (deviceId
|
|
19
|
+
startVideo: (deviceId: string) => Promise<void>;
|
|
19
20
|
stopVideo: () => Promise<void>;
|
|
20
21
|
switchCamera: (deviceId: string) => Promise<void>;
|
|
22
|
+
switchMicrophone: (deviceId: string) => Promise<void>;
|
|
21
23
|
};
|
|
22
24
|
export declare const ZoomVideoContext: import('react').Context<ZoomVideoContextType>;
|