@daily-co/react-native-daily-js 0.46.0 → 0.47.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daily-co/react-native-daily-js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0",
|
|
4
4
|
"description": "React Native library for making video calls using Daily",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@daily-co/daily-js": "^0.
|
|
29
|
+
"@daily-co/daily-js": "^0.49.1",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
32
|
},
|
|
@@ -239,23 +239,35 @@ export interface DailyTrackState {
|
|
|
239
239
|
persistentTrack?: MediaStreamTrack;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
+
export type DailyParticipantPermissionsCanSendValues =
|
|
243
|
+
| 'video'
|
|
244
|
+
| 'audio'
|
|
245
|
+
| 'screenVideo'
|
|
246
|
+
| 'screenAudio'
|
|
247
|
+
| 'customVideo'
|
|
248
|
+
| 'customAudio';
|
|
249
|
+
|
|
250
|
+
export type DailyParticipantPermissionsCanAdminValues =
|
|
251
|
+
| 'participants'
|
|
252
|
+
| 'streaming'
|
|
253
|
+
| 'transcription';
|
|
254
|
+
|
|
242
255
|
export interface DailyParticipantPermissions {
|
|
243
256
|
hasPresence: boolean;
|
|
244
|
-
canSend:
|
|
245
|
-
|
|
246
|
-
| 'video'
|
|
247
|
-
| 'audio'
|
|
248
|
-
| 'screenVideo'
|
|
249
|
-
| 'screenAudio'
|
|
250
|
-
| 'customVideo'
|
|
251
|
-
| 'customAudio'
|
|
252
|
-
>
|
|
253
|
-
| boolean;
|
|
254
|
-
canAdmin: Set<'participants' | 'streaming' | 'transcription'> | boolean;
|
|
257
|
+
canSend: Set<DailyParticipantPermissionsCanSendValues> | boolean;
|
|
258
|
+
canAdmin: Set<DailyParticipantPermissionsCanAdminValues> | boolean;
|
|
255
259
|
}
|
|
256
260
|
|
|
257
261
|
export type DailyParticipantPermissionsUpdate = {
|
|
258
|
-
|
|
262
|
+
hasPresence?: boolean;
|
|
263
|
+
canSend?:
|
|
264
|
+
| Array<DailyParticipantPermissionsCanSendValues>
|
|
265
|
+
| Set<DailyParticipantPermissionsCanSendValues>
|
|
266
|
+
| boolean;
|
|
267
|
+
canAdmin?:
|
|
268
|
+
| Array<DailyParticipantPermissionsCanAdminValues>
|
|
269
|
+
| Set<DailyParticipantPermissionsCanAdminValues>
|
|
270
|
+
| boolean;
|
|
259
271
|
};
|
|
260
272
|
|
|
261
273
|
export interface DailyParticipant {
|
|
@@ -310,7 +322,13 @@ export interface DailyParticipant {
|
|
|
310
322
|
record: boolean;
|
|
311
323
|
|
|
312
324
|
// video element info (iframe-based calls using standard UI only)
|
|
325
|
+
/**
|
|
326
|
+
* @deprecated This property will be removed. Refer to tracks.video instead.
|
|
327
|
+
*/
|
|
313
328
|
cam_info: {} | DailyVideoElementInfo;
|
|
329
|
+
/**
|
|
330
|
+
* @deprecated This property will be removed. Refer to tracks.screenVideo instead.
|
|
331
|
+
*/
|
|
314
332
|
screen_info: {} | DailyVideoElementInfo;
|
|
315
333
|
}
|
|
316
334
|
|
|
@@ -353,6 +371,12 @@ export interface DailyWaitingParticipantUpdateOptions {
|
|
|
353
371
|
grantRequestedAccess?: boolean;
|
|
354
372
|
}
|
|
355
373
|
|
|
374
|
+
/**
|
|
375
|
+
* @deprecated
|
|
376
|
+
* All properties will be removed as cam_info and screen_info are also deprecated.
|
|
377
|
+
* Use the participants() object's tracks property to retrieve track information instead.
|
|
378
|
+
* e.g. call.participants()['participant-id'].tracks.video.persistentTrack.getSettings()
|
|
379
|
+
*/
|
|
356
380
|
export interface DailyVideoElementInfo {
|
|
357
381
|
width: number;
|
|
358
382
|
height: number;
|
|
@@ -379,18 +403,24 @@ export interface DailyNetworkStats {
|
|
|
379
403
|
quality: number;
|
|
380
404
|
stats: {
|
|
381
405
|
latest: {
|
|
382
|
-
recvBitsPerSecond: number;
|
|
383
|
-
sendBitsPerSecond: number;
|
|
384
406
|
timestamp: number;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
407
|
+
recvBitsPerSecond: number | null;
|
|
408
|
+
sendBitsPerSecond: number | null;
|
|
409
|
+
videoRecvBitsPerSecond: number | null;
|
|
410
|
+
videoRecvPacketLoss: number | null;
|
|
411
|
+
videoSendBitsPerSecond: number | null;
|
|
412
|
+
videoSendPacketLoss: number | null;
|
|
413
|
+
audioRecvBitsPerSecond: number | null;
|
|
414
|
+
audioRecvPacketLoss: number | null;
|
|
415
|
+
audioSendBitsPerSecond: number | null;
|
|
416
|
+
audioSendPacketLoss: number | null;
|
|
417
|
+
totalSendPacketLoss: number | null;
|
|
418
|
+
totalRecvPacketLoss: number | null;
|
|
391
419
|
};
|
|
392
420
|
worstVideoRecvPacketLoss: number;
|
|
393
421
|
worstVideoSendPacketLoss: number;
|
|
422
|
+
worstAudioRecvPacketLoss: number;
|
|
423
|
+
worstAudioSendPacketLoss: number;
|
|
394
424
|
};
|
|
395
425
|
threshold: 'good' | 'low' | 'very-low';
|
|
396
426
|
}
|
|
@@ -515,7 +545,7 @@ export interface DailyRoomInfo {
|
|
|
515
545
|
};
|
|
516
546
|
tokenConfig: {
|
|
517
547
|
eject_at_token_exp?: boolean;
|
|
518
|
-
eject_after_elapsed?:
|
|
548
|
+
eject_after_elapsed?: number;
|
|
519
549
|
nbf?: number;
|
|
520
550
|
exp?: number;
|
|
521
551
|
is_owner?: boolean;
|