@fraku/video 0.1.39 → 0.1.41

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/README.md CHANGED
@@ -1,2 +1,22 @@
1
1
  # fraku-video
2
- Module of fraku, for integrate Video in Voting and Admin
2
+
3
+ This documentation provides an overview of the `VideoPlugin` library, its function flow, and its integration with the Zoom SDK. The library is designed to integrate video functionality into the Voting and Admin applications.
4
+
5
+ ## Getting Started
6
+
7
+ 1. **Install the library:**
8
+
9
+ ```bash
10
+ npm install @fraku/video
11
+ ```
12
+
13
+ 2. **Import and use the `VideoPlugin` component:**
14
+
15
+ ```tsx
16
+ import { VideoPlugin } from '@fraku/video'
17
+
18
+ const App = () => {
19
+ const ref = useRef<VideoPluginHandle>(null)
20
+ return <VideoPlugin ref={ref} />
21
+ }
22
+ ```
@@ -1,13 +1,16 @@
1
1
  import { VideoPluginProps } from './types';
2
2
 
3
- type VideoPluginHandle = {
4
- cleanup: () => Promise<void> | undefined;
5
- sessionStarted: boolean;
6
- joinSession: () => Promise<void> | undefined;
7
- leaveSession: ({ finishForAll }: {
3
+ /**
4
+ * Public API exposed to library consumers
5
+ */
6
+ export type VideoPluginRef = {
7
+ isReady: () => boolean;
8
+ cleanup: () => Promise<void>;
9
+ getSessionStarted: () => boolean;
10
+ joinSession: () => Promise<void>;
11
+ leaveSession: (options: {
8
12
  finishForAll?: boolean;
9
- }) => Promise<void> | undefined;
13
+ }) => Promise<void>;
10
14
  };
11
- export declare const VideoPlugin: import('react').ForwardRefExoticComponent<VideoPluginProps & import('react').RefAttributes<VideoPluginHandle>>;
12
- export type VideoPlugin = VideoPluginHandle;
15
+ export declare const VideoPlugin: import('react').ForwardRefExoticComponent<VideoPluginProps & import('react').RefAttributes<VideoPluginRef>>;
13
16
  export default VideoPlugin;