@fraku/video 0.1.20 → 0.1.21
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/config/permissions.d.ts +2 -0
- package/dist/index.cjs +158 -158
- package/dist/index.js +10630 -10651
- package/dist/libs/permissions.d.ts +1 -4
- package/dist/providers/AudioProvider/context.d.ts +1 -5
- package/dist/providers/UsersProvider/context.d.ts +1 -2
- package/dist/providers/VideoProvider/context.d.ts +1 -1
- package/dist/types/permissions.d.ts +0 -5
- package/package.json +1 -1
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Participant } from '@zoom/videosdk';
|
|
2
1
|
import { default as permissions } from '../config/permissions';
|
|
3
|
-
import { User } from '../types/permissions';
|
|
4
2
|
|
|
5
|
-
export declare const usePermissions: () => (permission: keyof typeof permissions) => boolean
|
|
6
|
-
export declare const createUser: (p: Participant, signature: string) => User;
|
|
3
|
+
export declare const usePermissions: () => (permission: keyof typeof permissions) => boolean;
|
|
@@ -12,11 +12,7 @@ export type AudioContextType = {
|
|
|
12
12
|
speakerList: MediaDevice[];
|
|
13
13
|
activeSpeakerId: string;
|
|
14
14
|
switchSpeaker: (deviceId: string) => Promise<void>;
|
|
15
|
-
startAudio: (
|
|
16
|
-
micId: string;
|
|
17
|
-
speakerId: string;
|
|
18
|
-
micMuted?: boolean;
|
|
19
|
-
}) => Promise<void>;
|
|
15
|
+
startAudio: () => Promise<void>;
|
|
20
16
|
setMicList: (mics: MediaDevice[]) => void;
|
|
21
17
|
setSpeakerList: (speakers: MediaDevice[]) => void;
|
|
22
18
|
setActiveMicId: (id: string) => void;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Participant } from '@zoom/videosdk';
|
|
2
|
-
import { User } from '../../types/permissions';
|
|
3
2
|
|
|
4
3
|
export type UsersContextType = {
|
|
5
4
|
users: Participant[];
|
|
6
|
-
currentUser:
|
|
5
|
+
currentUser: Participant | null;
|
|
7
6
|
activeSpeaker: Participant | null;
|
|
8
7
|
screenSharingUser: Participant | null;
|
|
9
8
|
};
|
|
@@ -8,7 +8,7 @@ export type VideoContextType = {
|
|
|
8
8
|
isBlurred: boolean;
|
|
9
9
|
localVideoRef: MutableRefObject<HTMLVideoElement | null>;
|
|
10
10
|
switchBlurred: (blurred: boolean) => Promise<void>;
|
|
11
|
-
startVideo: (
|
|
11
|
+
startVideo: () => Promise<void>;
|
|
12
12
|
stopVideo: () => Promise<void>;
|
|
13
13
|
switchCamera: (deviceId: string) => Promise<void>;
|
|
14
14
|
attachUserVideo: (userId: number, videoElement: VideoPlayer) => Promise<void>;
|