@videosdk.live/react-sdk 0.1.90 → 0.1.92

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.
@@ -85,7 +85,7 @@ export function MeetingProvider({
85
85
  config: {
86
86
  meetingId: string;
87
87
  autoConsume?: boolean;
88
- preferredProtocol?: 'UDP_ONLY' | 'UDP_OVER_TCP';
88
+ preferredProtocol?: "UDP_ONLY" | "UDP_OVER_TCP" | "TCP_ONLY";
89
89
  participantId?: string | undefined;
90
90
  name: string;
91
91
  micEnabled: boolean;
@@ -1029,7 +1029,7 @@ export function useTranscription({
1029
1029
  participantId: string;
1030
1030
  participantName: string;
1031
1031
  text: string;
1032
- timestamp: string;
1032
+ timestamp: number;
1033
1033
  type: 'realtime';
1034
1034
  }) => void;
1035
1035
  }): {
@@ -161,13 +161,18 @@ export class Meeting {
161
161
  * @param awsDirPath?
162
162
  * awsDirPath represents the Directory you want to store your recording if you have configured your own S3 storage
163
163
  *
164
- * @param config Config can be used to configure the HLS stream
165
- * @param config.layout.type These represents the layout which is to used in the HLS
166
- * @param config.layout.priority These defines the priority of participants to be considered while composing HLS
167
- * @param config.layout.gridSize These defines the maximum number of participants in the grid
168
- * @param config.theme These defines the color theme of the HLS livestream
169
- * @param config.mode These defines the mode of the HLS livestream as only audio or vidoe and audio both
170
- * @param config.quality These defines the quality of the HLS livestream
164
+ * @param config Config can be used to configure the Recording
165
+ * @param config.layout.type This represents the layout which is to used in the Recording
166
+ * @param config.layout.priority This defines the priority of participants to be considered while composing Recording
167
+ * @param config.layout.gridSize This defines the maximum number of participants in the grid
168
+ * @param config.theme This defines the color theme of the Recording
169
+ * @param config.mode This defines the mode of the Recording as only audio or vidoe and audio both
170
+ * @param config.quality This defines the quality of the Recording
171
+ *
172
+ * @param transcription Configuration of post-meeting transcription and summary generation.
173
+ * @param transcription.enabled Enables or disables post transcription.
174
+ * @param transcription.summary.enabled Enables or disables summary generation from post transcriptions.
175
+ * @param transcription.summary.prompt Guides summary generation (optional).
171
176
  */
172
177
  startRecording(
173
178
  webhookUrl: string,
@@ -181,6 +186,13 @@ export class Meeting {
181
186
  theme: 'DARK' | 'LIGHT' | 'DEFAULT';
182
187
  mode: 'video-and-audio' | 'audio';
183
188
  quality: 'low' | 'med' | 'high';
189
+ },
190
+ transcription?: {
191
+ enabled: boolean;
192
+ summary?: {
193
+ enabled: boolean;
194
+ prompt?: string;
195
+ };
184
196
  }
185
197
  ): void;
186
198
 
@@ -190,13 +202,13 @@ export class Meeting {
190
202
  stopRecording(): void;
191
203
 
192
204
  /**
193
- * These method is used to start the meeting RTMP to provided output
194
- * @param outputs These defines the array of outputs to which the RTMP has to be broadcasted
195
- * @param config Config can be used to configure the HLS stream
196
- * @param config.layout.type These represents the layout which is to used in the HLS
197
- * @param config.layout.priority These defines the priority of participants to be considered while composing HLS
198
- * @param config.layout.gridSize These defines the maximum number of participants in the grid
199
- * @param config.theme These defines the color theme of the RTMP livestream
205
+ * This method is used to start the meeting RTMP livestream to provided output
206
+ * @param outputs This defines the array of outputs to which the RTMP livestream has to be broadcasted
207
+ * @param config Config can be used to configure the RTMP livestream
208
+ * @param config.layout.type This represents the layout which is to used in the RTMP livestream
209
+ * @param config.layout.priority This defines the priority of participants to be considered while composing RTMP livestream
210
+ * @param config.layout.gridSize This defines the maximum number of participants in the grid
211
+ * @param config.theme This defines the color theme of the RTMP livestream
200
212
  */
201
213
  startLivestream(
202
214
  outputs: Array<{
@@ -214,19 +226,24 @@ export class Meeting {
214
226
  ): void;
215
227
 
216
228
  /**
217
- * @description This method is used to stop the meeting livestream
229
+ * @description This method is used to stop the meeting RTMP livestream
218
230
  */
219
231
  stopLivestream(): void;
220
232
 
221
233
  /**
222
- * These method is used to start the meeting HLS
234
+ * This method is used to start the meeting HLS
223
235
  * @param config Config can be used to configure the HLS stream
224
- * @param config.layout.type These represents the layout which is to used in the HLS
225
- * @param config.layout.priority These defines the priority of participants to be considered while composing HLS
226
- * @param config.layout.gridSize These defines the maximum number of participants in the grid
227
- * @param config.theme These defines the color theme of the HLS livestream
228
- * @param config.mode These defines the mode of the HLS livestream as only audio or vidoe and audio both
229
- * @param config.quality These defines the quality of the HLS livestream
236
+ * @param config.layout.type This represents the layout which is to used in the HLS
237
+ * @param config.layout.priority This defines the priority of participants to be considered while composing HLS
238
+ * @param config.layout.gridSize This defines the maximum number of participants in the grid
239
+ * @param config.theme This defines the color theme of the HLS livestream
240
+ * @param config.mode This defines the mode of the HLS livestream as only audio or vidoe and audio both
241
+ * @param config.quality This defines the quality of the HLS livestream
242
+ *
243
+ * @param transcription Configuration of post-meeting transcription and summary generation.
244
+ * @param transcription.enabled Enables or disables post transcription.
245
+ * @param transcription.summary.enabled Enables or disables summary generation from post transcriptions.
246
+ * @param transcription.summary.prompt Guides summary generation (optional).
230
247
  */
231
248
  startHls(config?: {
232
249
  layout: {
@@ -237,6 +254,13 @@ export class Meeting {
237
254
  theme: 'DARK' | 'LIGHT' | 'DEFAULT';
238
255
  mode: 'video-and-audio' | 'audio';
239
256
  quality: 'low' | 'med' | 'high';
257
+ transcription?: {
258
+ enabled: boolean;
259
+ summary?: {
260
+ enabled: boolean;
261
+ prompt?: string;
262
+ };
263
+ };
240
264
  }): Promise<void>;
241
265
 
242
266
  /**
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@videosdk.live/react-sdk",
3
- "version": "0.1.90",
3
+ "version": "0.1.92",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
7
7
  "source": "src/index.js",
8
8
  "types": "dist/types/index.d.ts",
9
9
  "scripts": {
10
- "build": "microbundle-crl --no-compress --format modern,cjs && yarn copyTypesFolder && npm publish",
10
+ "build": "microbundle-crl --no-compress --format modern,cjs && yarn copyTypesFolder",
11
11
  "copyTypesFolder": "cp -a ./src/types/ ./dist/types",
12
12
  "prettier": "prettier --write 'src/**/*.js'",
13
13
  "lint": "eslint 'src/**/*.js'"
@@ -32,13 +32,13 @@
32
32
  "husky": "^2.3.0",
33
33
  "jest": "^24.8.0",
34
34
  "lint-staged": "^8.1.7",
35
+ "mediasoup-client": "^3.7.6",
35
36
  "microbundle-crl": "^0.13.10",
36
37
  "npm-run-all": "^4.1.5",
37
38
  "prettier": "^1.17.1",
38
39
  "react": "^16.13.1",
39
40
  "test-listen": "^1.1.0",
40
- "typescript": "^4.7.4",
41
- "mediasoup-client": "^3.7.6"
41
+ "typescript": "^4.7.4"
42
42
  },
43
43
  "eslintConfig": {
44
44
  "parser": "babel-eslint",
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "dependencies": {
76
- "@videosdk.live/js-sdk": "0.0.86",
76
+ "@videosdk.live/js-sdk": "0.0.88",
77
77
  "events": "^3.3.0"
78
78
  }
79
79
  }