@fraku/video 0.1.38 → 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 +21 -1
- package/dist/VideoPlugin.d.ts +8 -5
- package/dist/VideoPlugin.stories.d.ts +1 -0
- package/dist/index.cjs +112 -112
- package/dist/index.css +1 -1
- package/dist/index.js +6414 -6372
- package/dist/libs/ensureRef.d.ts +1 -0
- package/dist/providers/SessionProvider/SessionProvider.d.ts +2 -1
- package/dist/providers/VideoPluginProvider/VideoPluginProvider.d.ts +13 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,2 +1,22 @@
|
|
|
1
1
|
# fraku-video
|
|
2
|
-
|
|
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
|
+
```
|
package/dist/VideoPlugin.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { VideoPluginProps } from './types';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Public API exposed to library consumers
|
|
5
|
+
*/
|
|
6
|
+
export type VideoPluginRef = {
|
|
7
|
+
isReady: () => boolean;
|
|
4
8
|
cleanup: () => Promise<void>;
|
|
5
|
-
|
|
9
|
+
getSessionStarted: () => boolean;
|
|
6
10
|
joinSession: () => Promise<void>;
|
|
7
|
-
leaveSession: (
|
|
11
|
+
leaveSession: (options: {
|
|
8
12
|
finishForAll?: boolean;
|
|
9
13
|
}) => Promise<void>;
|
|
10
14
|
};
|
|
11
|
-
export declare const VideoPlugin: import('react').ForwardRefExoticComponent<VideoPluginProps & import('react').RefAttributes<
|
|
12
|
-
export type VideoPlugin = VideoPluginHandle;
|
|
15
|
+
export declare const VideoPlugin: import('react').ForwardRefExoticComponent<VideoPluginProps & import('react').RefAttributes<VideoPluginRef>>;
|
|
13
16
|
export default VideoPlugin;
|