@fraku/video 0.0.6 → 0.1.0
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 +13 -0
- package/dist/VideoPlugin.stories.d.ts +11 -0
- package/dist/VideoPluginContent.d.ts +5 -0
- package/dist/VideoPluginProvider.d.ts +11 -0
- package/dist/context.d.ts +22 -0
- package/dist/hooks/useAsyncHandler.d.ts +5 -0
- package/dist/hooks/useIsMobile.d.ts +2 -0
- package/dist/index.cjs +850 -691
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +47459 -26389
- package/dist/pages/MainSessionPage/ButtonsDock.d.ts +2 -0
- package/dist/pages/MainSessionPage/Chat/Chat.d.ts +2 -0
- package/dist/pages/MainSessionPage/Chat/index.d.ts +1 -0
- package/dist/pages/MainSessionPage/MainSessionPage.d.ts +2 -0
- package/dist/pages/MainSessionPage/ParticipantVideo.d.ts +8 -0
- package/dist/pages/MainSessionPage/Video.d.ts +2 -0
- package/dist/pages/MainSessionPage/index.d.ts +1 -0
- package/dist/pages/SetupPage/SetupPage.d.ts +2 -0
- package/dist/pages/SetupPage/index.d.ts +1 -0
- package/dist/types.d.ts +13 -0
- package/dist/utils.d.ts +48 -0
- package/package.json +15 -7
- package/dist/App.d.ts +0 -3
- package/dist/components/ZoomVideoPlugin/ZoomVideoPlugin.d.ts +0 -4
- package/dist/components/ZoomVideoPlugin/ZoomVideoPlugin.stories.d.ts +0 -27
- package/dist/components/ZoomVideoPlugin/components/ButtonsDock/ButtonsDock.d.ts +0 -13
- package/dist/components/ZoomVideoPlugin/components/ButtonsDock/DockButton.d.ts +0 -30
- package/dist/components/ZoomVideoPlugin/components/ButtonsDock/MenuItemTemplate.d.ts +0 -9
- package/dist/components/ZoomVideoPlugin/components/ButtonsDock/index.d.ts +0 -1
- package/dist/components/ZoomVideoPlugin/components/MobileIconButton/MobileIconButton.d.ts +0 -9
- package/dist/components/ZoomVideoPlugin/components/MobileIconButton/index.d.ts +0 -1
- package/dist/components/ZoomVideoPlugin/components/Overlay/Overlay.d.ts +0 -13
- package/dist/components/ZoomVideoPlugin/components/Overlay/index.d.ts +0 -1
- package/dist/components/ZoomVideoPlugin/components/ParticipantsList.d.ts +0 -11
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/SettingsContent.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/SettingsMenu.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/SettingsOverlay.d.ts +0 -11
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/Tabs/AudioSettings.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/Tabs/BackgroundSettings.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/Tabs/DropdownItemTemplate.d.ts +0 -8
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/Tabs/DropdownValueTemplate.d.ts +0 -8
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/Tabs/VideoSettings.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/context.d.ts +0 -13
- package/dist/components/ZoomVideoPlugin/components/SettingsOverlay/index.d.ts +0 -1
- package/dist/components/ZoomVideoPlugin/components/Video.d.ts +0 -5
- package/dist/components/ZoomVideoPlugin/constants.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/context.d.ts +0 -38
- package/dist/components/ZoomVideoPlugin/hooks/useClientMessages.d.ts +0 -21
- package/dist/components/ZoomVideoPlugin/hooks/useStartVideoOptions.d.ts +0 -10
- package/dist/components/ZoomVideoPlugin/hooks/useZoomVideoPlayer.d.ts +0 -7
- package/dist/components/ZoomVideoPlugin/index.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/lib/platforms.d.ts +0 -4
- package/dist/components/ZoomVideoPlugin/pages/AfterSession.d.ts +0 -4
- package/dist/components/ZoomVideoPlugin/pages/MainSession.d.ts +0 -2
- package/dist/components/ZoomVideoPlugin/pages/PanelistsSession.d.ts +0 -4
- package/dist/components/ZoomVideoPlugin/pages/PreSessionConfiguration.d.ts +0 -4
- package/dist/components/ZoomVideoPlugin/types.d.ts +0 -20
- package/dist/main.d.ts +0 -1
- /package/dist/{components/ZoomVideoPlugin/hooks → hooks}/useDeviceSize.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VideoPluginProps } from './types';
|
|
2
|
+
|
|
3
|
+
type ZoomVideoHandle = {
|
|
4
|
+
sessionStarted: boolean;
|
|
5
|
+
initSession: () => Promise<void>;
|
|
6
|
+
joinSession: () => Promise<void>;
|
|
7
|
+
startVideo: () => Promise<void>;
|
|
8
|
+
stopVideo: () => Promise<void>;
|
|
9
|
+
stopSession: () => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export declare const VideoPlugin: ({ credentials, className }: VideoPluginProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type VideoPlugin = ZoomVideoHandle;
|
|
13
|
+
export default VideoPlugin;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ChatMessage } from '@zoom/videosdk';
|
|
3
|
+
import { Credentials } from './types';
|
|
4
|
+
|
|
5
|
+
type VideoPluginProviderProps = {
|
|
6
|
+
credentials: Credentials;
|
|
7
|
+
messages?: ChatMessage[];
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
declare const VideoPluginProvider: ({ credentials, messages: mockMessages, children }: VideoPluginProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default VideoPluginProvider;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChatMessage, MediaDevice, Participant, VideoPlayer } from '@zoom/videosdk';
|
|
2
|
+
|
|
3
|
+
export declare const zmClient: typeof import('@zoom/videosdk').VideoClient;
|
|
4
|
+
export type ZoomVideoContextType = {
|
|
5
|
+
sessionStarted: boolean;
|
|
6
|
+
videoStarted: boolean;
|
|
7
|
+
currentCameraId: string;
|
|
8
|
+
cameraList: MediaDevice[];
|
|
9
|
+
speakerList: MediaDevice[];
|
|
10
|
+
micList: MediaDevice[];
|
|
11
|
+
participants: Participant[];
|
|
12
|
+
currentUser: Participant | null;
|
|
13
|
+
messages: ChatMessage[];
|
|
14
|
+
joinSession: () => Promise<void>;
|
|
15
|
+
leaveSession: () => Promise<void>;
|
|
16
|
+
attachUserVideo: (userId: number, videoElement: VideoPlayer) => Promise<void>;
|
|
17
|
+
detachUserVideo: (userId: number) => Promise<void>;
|
|
18
|
+
startVideo: (deviceId?: string) => Promise<void>;
|
|
19
|
+
stopVideo: () => Promise<void>;
|
|
20
|
+
switchCamera: (deviceId: string) => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export declare const ZoomVideoContext: import('react').Context<ZoomVideoContextType>;
|