@videosdk.live/react-sdk 0.1.69 → 0.1.71
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/index.js +18 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -22
- package/dist/index.modern.js.map +1 -1
- package/dist/types/connection.d.ts +19 -0
- package/dist/types/connectionMeeting.d.ts +49 -0
- package/dist/types/connectionParticipant.d.ts +15 -0
- package/dist/types/index.d.ts +916 -64
- package/dist/types/meeting.d.ts +448 -0
- package/dist/types/participant.d.ts +184 -0
- package/dist/types/stream.d.ts +27 -0
- package/package.json +4 -4
- package/dist/types/connection/useConnection.d.ts +0 -42
- package/dist/types/connection/useConnection.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/meeting/MeetingProvider.d.ts +0 -48
- package/dist/types/meeting/MeetingProvider.d.ts.map +0 -1
- package/dist/types/meeting/meetingProviderContextDef.d.ts +0 -166
- package/dist/types/meeting/meetingProviderContextDef.d.ts.map +0 -1
- package/dist/types/participant/useParticipant.d.ts +0 -193
- package/dist/types/participant/useParticipant.d.ts.map +0 -1
- package/dist/types/pubSub/usePubSub.d.ts +0 -37
- package/dist/types/pubSub/usePubSub.d.ts.map +0 -1
- package/dist/types/utils.d.ts +0 -35
- package/dist/types/utils.d.ts.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class Connection {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
payload: string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
meeting: ConnectionMeeting;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
close(): void;
|
|
18
|
+
}
|
|
19
|
+
import { ConnectionMeeting } from './connectionMeeting';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export class ConnectionMeeting {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
participants: Map<string, ConnectionParticipant>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
* @param peer
|
|
13
|
+
*/
|
|
14
|
+
participantJoin(peer: any): void;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
* @param peer
|
|
18
|
+
*/
|
|
19
|
+
participantLeft(peerId: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
23
|
+
sendChatMessage(message: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
* @param peer
|
|
27
|
+
*/
|
|
28
|
+
sendChatMessageEvent({ participantId, message }: { participantId: any; message: any }): void;
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
* @param peer
|
|
32
|
+
*/
|
|
33
|
+
end(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated
|
|
36
|
+
* Add event listener
|
|
37
|
+
* @param eventType
|
|
38
|
+
* @param listener Callback function
|
|
39
|
+
*/
|
|
40
|
+
on(eventType: 'participant-joined' | 'participant-left' | 'chat-message', listener: (data: any) => void): void;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated
|
|
43
|
+
* Remove event listener
|
|
44
|
+
* @param eventType
|
|
45
|
+
* @param listener Callback function
|
|
46
|
+
*/
|
|
47
|
+
off(eventType: 'participant-joined' | 'participant-left' | 'chat-message', listener: (data: any) => void): void;
|
|
48
|
+
}
|
|
49
|
+
import { ConnectionParticipant } from './connectionParticipant';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class ConnectionParticipant {
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
9
|
+
displayName: string;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
* @param options
|
|
13
|
+
*/
|
|
14
|
+
switchTo({ meetingId, payload, token }: { meetingId: string; payload: string; token: string }): Promise<void>;
|
|
15
|
+
}
|