@fraku/video 0.0.7 → 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/{ZoomVideo.d.ts → VideoPlugin.d.ts} +5 -3
- package/dist/{ZoomVideo.stories.d.ts → VideoPlugin.stories.d.ts} +3 -0
- package/dist/VideoPluginContent.d.ts +5 -0
- package/dist/VideoPluginProvider.d.ts +11 -0
- package/dist/context.d.ts +14 -41
- package/dist/index.cjs +845 -525
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +43020 -22248
- package/dist/pages/MainSessionPage/ButtonsDock.d.ts +2 -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 +4 -11
- package/dist/utils.d.ts +48 -0
- package/package.json +6 -3
- package/dist/ZoomVideoPlugin.d.ts +0 -4
- package/dist/ZoomVideoPlugin.stories.d.ts +0 -8
- package/dist/ZoomVideoPluginRouter.d.ts +0 -4
- package/dist/ZoomVideoProvider.d.ts +0 -12
- package/dist/components/ButtonsDock/ButtonsDock.d.ts +0 -13
- package/dist/components/ButtonsDock/DockButton.d.ts +0 -30
- package/dist/components/ButtonsDock/MenuItemTemplate.d.ts +0 -9
- package/dist/components/ButtonsDock/index.d.ts +0 -1
- package/dist/components/MobileIconButton/MobileIconButton.d.ts +0 -9
- package/dist/components/MobileIconButton/index.d.ts +0 -1
- package/dist/components/Overlay/Overlay.d.ts +0 -13
- package/dist/components/Overlay/index.d.ts +0 -1
- package/dist/components/ParticipantsList.d.ts +0 -11
- package/dist/components/SettingsOverlay/SettingsContent.d.ts +0 -2
- package/dist/components/SettingsOverlay/SettingsMenu.d.ts +0 -2
- package/dist/components/SettingsOverlay/SettingsOverlay.d.ts +0 -11
- package/dist/components/SettingsOverlay/Tabs/AudioSettings.d.ts +0 -2
- package/dist/components/SettingsOverlay/Tabs/BackgroundSettings.d.ts +0 -2
- package/dist/components/SettingsOverlay/Tabs/DropdownItemTemplate.d.ts +0 -8
- package/dist/components/SettingsOverlay/Tabs/DropdownValueTemplate.d.ts +0 -8
- package/dist/components/SettingsOverlay/Tabs/VideoSettings.d.ts +0 -2
- package/dist/components/SettingsOverlay/context.d.ts +0 -13
- package/dist/components/SettingsOverlay/index.d.ts +0 -1
- package/dist/components/Video.d.ts +0 -2
- package/dist/constants.d.ts +0 -2
- package/dist/hooks/useClientMessages.d.ts +0 -5
- package/dist/hooks/useStartVideoOptions.d.ts +0 -10
- package/dist/hooks/useZoomVideoPlayer.d.ts +0 -7
- package/dist/lib/platforms.d.ts +0 -4
- package/dist/pages/AfterSession.d.ts +0 -4
- package/dist/pages/MainSession.d.ts +0 -2
- package/dist/pages/PanelistsSession.d.ts +0 -4
- package/dist/pages/PreSessionConfiguration.d.ts +0 -4
- /package/dist/{components → pages/MainSessionPage}/Chat/Chat.d.ts +0 -0
- /package/dist/{components → pages/MainSessionPage}/Chat/index.d.ts +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { VideoPluginProps } from './types';
|
|
2
|
+
|
|
1
3
|
type ZoomVideoHandle = {
|
|
2
4
|
sessionStarted: boolean;
|
|
3
5
|
initSession: () => Promise<void>;
|
|
@@ -6,6 +8,6 @@ type ZoomVideoHandle = {
|
|
|
6
8
|
stopVideo: () => Promise<void>;
|
|
7
9
|
stopSession: () => Promise<void>;
|
|
8
10
|
};
|
|
9
|
-
export declare const
|
|
10
|
-
export type
|
|
11
|
-
export default
|
|
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;
|
package/dist/context.d.ts
CHANGED
|
@@ -1,49 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Breakpoint } from './hooks/useDeviceSize';
|
|
1
|
+
import { ChatMessage, MediaDevice, Participant, VideoPlayer } from '@zoom/videosdk';
|
|
3
2
|
|
|
4
|
-
export declare const zmClient: typeof VideoClient;
|
|
3
|
+
export declare const zmClient: typeof import('@zoom/videosdk').VideoClient;
|
|
5
4
|
export type ZoomVideoContextType = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
activeMicrophone: string | undefined;
|
|
10
|
-
activeSpeakers: ActiveSpeaker[];
|
|
11
|
-
activeVideoId: number | null;
|
|
12
|
-
audioOutputList: MediaDevice[];
|
|
13
|
-
breakpoint: Breakpoint;
|
|
5
|
+
sessionStarted: boolean;
|
|
6
|
+
videoStarted: boolean;
|
|
7
|
+
currentCameraId: string;
|
|
14
8
|
cameraList: MediaDevice[];
|
|
15
|
-
|
|
16
|
-
isBlurred: boolean;
|
|
17
|
-
isCamOn: boolean;
|
|
18
|
-
isMicOn: boolean;
|
|
19
|
-
localAudio: LocalAudioTrack | undefined;
|
|
20
|
-
localVideo: LocalVideoTrack | undefined;
|
|
21
|
-
mediaStream: typeof Stream | null;
|
|
9
|
+
speakerList: MediaDevice[];
|
|
22
10
|
micList: MediaDevice[];
|
|
23
11
|
participants: Participant[];
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
setActiveMicrophone: ReactSetter<string | undefined>;
|
|
27
|
-
setActiveAudioOutput: ReactSetter<string | undefined>;
|
|
28
|
-
setActiveCamera: ReactSetter<string | undefined>;
|
|
29
|
-
setMicList: ReactSetter<MediaDevice[]>;
|
|
30
|
-
setActiveSpeakers: ReactSetter<ActiveSpeaker[]>;
|
|
31
|
-
setActiveVideoId: ReactSetter<number | null>;
|
|
32
|
-
setAudioOutputList: ReactSetter<MediaDevice[]>;
|
|
33
|
-
setCameraList: ReactSetter<MediaDevice[]>;
|
|
34
|
-
setConnectionState: ReactSetter<ConnectionState | null>;
|
|
35
|
-
setIsBlurred: ReactSetter<boolean>;
|
|
36
|
-
setIsCamOn: ReactSetter<boolean>;
|
|
37
|
-
setIsMicOn: ReactSetter<boolean>;
|
|
38
|
-
setLocalAudio: ReactSetter<LocalAudioTrack>;
|
|
39
|
-
setLocalVideo: ReactSetter<LocalVideoTrack>;
|
|
40
|
-
setMediaStream: ReactSetter<typeof Stream | null>;
|
|
41
|
-
setParticipants: ReactSetter<Participant[]>;
|
|
42
|
-
switchActiveAudioOutput: (deviceId: string) => Promise<void>;
|
|
43
|
-
switchActiveMicrophone: (deviceId: string) => Promise<void>;
|
|
44
|
-
initSession: () => Promise<void>;
|
|
12
|
+
currentUser: Participant | null;
|
|
13
|
+
messages: ChatMessage[];
|
|
45
14
|
joinSession: () => Promise<void>;
|
|
46
|
-
|
|
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>;
|
|
47
21
|
};
|
|
48
22
|
export declare const ZoomVideoContext: import('react').Context<ZoomVideoContextType>;
|
|
49
|
-
export declare const useZoomVideoContext: () => ZoomVideoContextType;
|