@videosdk.live/react-sdk 0.4.3 → 0.4.5

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.
@@ -1,227 +0,0 @@
1
- export class Participant {
2
- /**
3
- * @description This represents the participant's ID
4
- */
5
- id: string;
6
- /**
7
- * @description This represents the participant's name
8
- */
9
- displayName: string;
10
- /**
11
- * @description This represents the all the Streams that the participant is producing
12
- *
13
- */
14
- streams: Map<string, Stream>;
15
- /**
16
- * @description This represents the quality of video being consumed for the participant
17
- *
18
- */
19
- quality: 'low' | 'med' | 'high';
20
- /**
21
- * @description This represents if the participant is local or remote
22
- *
23
- */
24
- local: boolean;
25
- /**
26
- * @description This represents participant's current pin state
27
- *
28
- */
29
- pinState: {
30
- cam: boolean;
31
- share: boolean;
32
- };
33
- /**
34
- * @description This represents participant's current webcam status
35
- */
36
- webcamOn: boolean;
37
- /**
38
- * @description This represents participant's current mic status
39
- *
40
- */
41
- micOn: boolean;
42
- /**
43
- * @description This represents participant's current mode
44
- *
45
- */
46
- mode: 'SEND_AND_RECV' | 'SIGNALLING_ONLY' | 'RECV_ONLY'
47
- /**
48
- * @description This represents metaData which is passed in MeetingProvider
49
- *
50
- */
51
- metaData: object;
52
-
53
- /**
54
- * @description This method can be used to kickout a participant from the meeting
55
- */
56
- remove(): void;
57
- /**
58
- * @description This method can be used to enable mic of the participant in the meeting
59
- */
60
- enableMic(): void;
61
- /**
62
- * @description This method can be used to disable mic of the participant in the meeting
63
- */
64
- disableMic(): void;
65
- /**
66
- * @description This method can be used to enable webcam of the participant in the meeting
67
- */
68
- enableWebcam(): void;
69
- /**
70
- * @description This method can be used to disable webcam of the participant in the meeting
71
- */
72
- disableWebcam(): void;
73
- /**
74
- * @description This method can be used to capture image in the meeting
75
- */
76
- captureImage({
77
- height,
78
- width
79
- }: {
80
- height?: number;
81
- width?: number;
82
- }): Promise<string | null>;
83
- /**
84
- * @description This method can be used to set the incoming video quality of the participant
85
- * @param quality
86
- */
87
- setQuality(quality: 'low' | 'med' | 'high'): void;
88
- /**
89
- * @description This method can be used to set the incoming screen sharevideo quality of the participant
90
- * @param quality
91
- */
92
- setScreenShareQuality(quality: 'low' | 'med' | 'high'): void;
93
- /**
94
- * @description This method can be used to set the video quality of the participant based on the size of the viewport it is being displayed in
95
- * @param width Width of the Viewport in which participant video is shown
96
- * @param height Height of the Viewport in which participant video is shown
97
- */
98
- setViewPort(width: number, height: number): void;
99
-
100
- /**
101
- * @param type If `SHARE_AND_CAM` is provided, it will pin screenshare and camera of the participant.
102
- * If `CAM` is provided, it will only pin the participant's camera, If `SHARE` is provided, it will only pin the participant's screen share
103
- */
104
- pin(type: 'SHARE_AND_CAM' | 'CAM' | 'SHARE'): void;
105
- /**
106
- * @param type If `SHARE_AND_CAM` is provided, it will unpin screenshare and camera of the participant.
107
- * If `CAM` is provided, it will only unpin the participant's camera, If `SHARE` is provided, it will only unpin the participant's screen share
108
- */
109
- unpin(type: 'SHARE_AND_CAM' | 'CAM' | 'SHARE'): void;
110
- /**
111
- * @description This method returns the Video Statistics of the participant.
112
- * To learn more about the video statistics check these [reference](https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/render-media/understanding-call-quality)
113
- */
114
- getVideoStats(): Promise<
115
- Array<{
116
- bitrate: number;
117
- rtt: number;
118
- network: string;
119
- codec: string;
120
- jitter: number;
121
- limitation: any;
122
- totalPackets: number;
123
- packetsLost: number;
124
- concealmentEvents: number;
125
- insertedSamplesForDecelaration: number;
126
- removedSamplesForAccelaration: number;
127
- size: any;
128
- currentSpatialLayer: number;
129
- currentTemporalLayer: number;
130
- preferredSpatialLayer: number;
131
- preferredTemporalLayer: number;
132
- }>
133
- >;
134
- /**
135
- * @description This method returns the Screen Share Audio Statistics of the participant.
136
- * To learn more about the video statistics check these [reference](https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/render-media/understanding-call-quality)
137
- */
138
- getShareAudioStats(): Promise<
139
- Array<{
140
- bitrate: number;
141
- rtt: number;
142
- network: string;
143
- codec: string;
144
- jitter: number;
145
- totalPackets: number;
146
- packetsLost: number;
147
- concealmentEvents: number;
148
- insertedSamplesForDecelaration: number;
149
- removedSamplesForAccelaration: number;
150
- size: any;
151
- }>
152
- >;
153
- /**
154
- * @description This method returns the Screen Share Statistics of the participant.
155
- * To learn more about the video statistics check these [reference](https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/render-media/understanding-call-quality)
156
- */
157
- getShareStats(): Promise<
158
- Array<{
159
- bitrate: number;
160
- rtt: number;
161
- network: string;
162
- codec: string;
163
- jitter: number;
164
- limitation: any;
165
- totalPackets: number;
166
- packetsLost: number;
167
- concealmentEvents: number;
168
- insertedSamplesForDecelaration: number;
169
- removedSamplesForAccelaration: number;
170
- size: any;
171
- currentSpatialLayer: number;
172
- currentTemporalLayer: number;
173
- preferredSpatialLayer: number;
174
- preferredTemporalLayer: number;
175
- }>
176
- >;
177
- /**
178
- * @description This method returns the Audio Statistics of the participant.
179
- * To learn more about the video statistics check these [reference](https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/render-media/understanding-call-quality)
180
- */
181
- getAudioStats(): Promise<
182
- Array<{
183
- bitrate: number;
184
- rtt: number;
185
- network: string;
186
- codec: string;
187
- jitter: number;
188
- totalPackets: number;
189
- packetsLost: number;
190
- concealmentEvents: number;
191
- insertedSamplesForDecelaration: number;
192
- removedSamplesForAccelaration: number;
193
- size: any;
194
- }>
195
- >;
196
- consumeMicStreams(): void;
197
- consumeWebcamStreams(): void;
198
- stopConsumingWebcamStreams(): void;
199
- stopConsumingMicStreams(): void;
200
- /**
201
- * Add event listener
202
- * @param eventType Event name to which you want to subscribe.
203
- * @param listener Callback function which will be triggered when the event happens
204
- */
205
- on(
206
- eventType:
207
- | 'stream-enabled'
208
- | 'stream-disabled'
209
- | 'media-status-changed'
210
- | 'video-quality-changed',
211
- listener: (data: any) => void
212
- ): void;
213
- /**
214
- * Remove event
215
- * @param eventType Event name to which you want to unsubscribe.
216
- * @param listener Callback function which was passed while subscribing to the event
217
- */
218
- off(
219
- eventType:
220
- | 'stream-enabled'
221
- | 'stream-disabled'
222
- | 'media-status-changed'
223
- | 'video-quality-changed',
224
- listener: (data: any) => void
225
- ): void;
226
- }
227
- import { Stream } from './stream';
@@ -1,5 +0,0 @@
1
- export declare enum Permission {
2
- AUDIO = "audio",
3
- VIDEO = "video",
4
- AUDIO_AND_VIDEO = "audio_video"
5
- }
@@ -1,27 +0,0 @@
1
- export class Stream {
2
- /**
3
- * Id of the stream
4
- */
5
- id: string;
6
- /**
7
- * @description This represents the type of Stream
8
- */
9
- kind: 'audio' | 'video' | 'share' | 'shareAudio';
10
- /**
11
- * @description This represents the codec of the stream
12
- */
13
- codec: string;
14
- /**
15
- * @description This represents the track which can be used to play the audio or video of the participant
16
- */
17
- track: MediaStreamTrack;
18
- /**
19
- * @description This method can be used to pause the incoming audio stream
20
- */
21
- pause(): void;
22
- /**
23
- * @description This method can be used to resume the incoming audio stream
24
- */
25
- resume(): void;
26
- get paused(): any;
27
- }