@daily-co/react-native-daily-js 0.68.0 → 0.69.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.69.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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"baseUrl": "https://github.com/daily-co/react-native-daily-js"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@daily-co/daily-js": "^0.
|
|
31
|
+
"@daily-co/daily-js": "^0.71.2",
|
|
32
32
|
"@types/react-native-background-timer": "^2.0.0",
|
|
33
33
|
"base-64": "^1.0.0",
|
|
34
34
|
"react-native-url-polyfill": "^1.1.2"
|
|
@@ -69,6 +69,7 @@ export type DailyEvent =
|
|
|
69
69
|
| 'active-speaker-change'
|
|
70
70
|
| 'network-quality-change'
|
|
71
71
|
| 'network-connection'
|
|
72
|
+
| 'test-completed'
|
|
72
73
|
| 'cpu-load-change'
|
|
73
74
|
| 'error'
|
|
74
75
|
| 'nonfatal-error'
|
|
@@ -423,6 +424,56 @@ export interface DailyStartScreenShare {
|
|
|
423
424
|
| DailyScreenVideoSendSettingsPreset;
|
|
424
425
|
}
|
|
425
426
|
|
|
427
|
+
export type DailyQualityTestResult =
|
|
428
|
+
| 'good'
|
|
429
|
+
| 'bad'
|
|
430
|
+
| 'warning'
|
|
431
|
+
| 'aborted'
|
|
432
|
+
| 'failed';
|
|
433
|
+
|
|
434
|
+
export type DailyP2PCallQualityTestResults =
|
|
435
|
+
| DailyP2PCallQualityTestStats
|
|
436
|
+
| DailyCallQualityTestAborted
|
|
437
|
+
| DailyCallQualityTestFailure;
|
|
438
|
+
|
|
439
|
+
export interface DailyP2PCallQualityTestStats {
|
|
440
|
+
result: Extract<DailyQualityTestResult, 'good' | 'warning' | 'bad'>;
|
|
441
|
+
data: DailyP2PCallQualityTestData;
|
|
442
|
+
secondsElapsed: number;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export interface DailyP2PCallQualityTestData {
|
|
446
|
+
maxRoundTripTime: number | null;
|
|
447
|
+
avgRoundTripTime: number | null;
|
|
448
|
+
avgRecvPacketLoss: number | null;
|
|
449
|
+
avgAvailableOutgoingBitrate: number | null;
|
|
450
|
+
avgSendBitsPerSecond: number | null;
|
|
451
|
+
avgRecvBitsPerSecond: number | null;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface DailyCallQualityTestAborted {
|
|
455
|
+
result: Extract<DailyQualityTestResult, 'aborted'>;
|
|
456
|
+
secondsElapsed: number;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export interface DailyCallQualityTestFailure {
|
|
460
|
+
result: Extract<DailyQualityTestResult, 'failed'>;
|
|
461
|
+
errorMsg: string;
|
|
462
|
+
error?: DailyFatalErrorObject<DailyFatalErrorType>;
|
|
463
|
+
secondsElapsed: number;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface DailyWebsocketConnectivityTestResults {
|
|
467
|
+
result: 'passed' | 'failed' | 'warning' | 'aborted';
|
|
468
|
+
abortedRegions: string[];
|
|
469
|
+
failedRegions: string[];
|
|
470
|
+
passedRegions: string[];
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export interface DailyNetworkConnectivityTestStats {
|
|
474
|
+
result: 'passed' | 'failed' | 'aborted';
|
|
475
|
+
}
|
|
476
|
+
|
|
426
477
|
export interface DailyNetworkStats {
|
|
427
478
|
quality: number;
|
|
428
479
|
stats: {
|
|
@@ -894,6 +945,15 @@ export interface DailyEventObjectNetworkConnectionEvent
|
|
|
894
945
|
sfu_id?: string;
|
|
895
946
|
}
|
|
896
947
|
|
|
948
|
+
export interface DailyEventObjectTestCompleted extends DailyEventObjectBase {
|
|
949
|
+
action: Extract<DailyEvent, 'test-completed'>;
|
|
950
|
+
test: 'p2p-call-quality' | 'network-connectivity' | 'websocket-connectivity';
|
|
951
|
+
results:
|
|
952
|
+
| DailyP2PCallQualityTestResults
|
|
953
|
+
| DailyNetworkConnectivityTestStats
|
|
954
|
+
| DailyWebsocketConnectivityTestResults;
|
|
955
|
+
}
|
|
956
|
+
|
|
897
957
|
export interface DailyEventObjectActiveSpeakerChange
|
|
898
958
|
extends DailyEventObjectBase {
|
|
899
959
|
action: Extract<DailyEvent, 'active-speaker-change'>;
|
|
@@ -1036,6 +1096,7 @@ export interface DailyEventObjectDialinWarning extends DailyEventObjectBase {
|
|
|
1036
1096
|
export interface DailyEventObjectDialOutConnected extends DailyEventObjectBase {
|
|
1037
1097
|
action: Extract<DailyEvent, 'dialout-connected'>;
|
|
1038
1098
|
sessionId?: string;
|
|
1099
|
+
userId?: string;
|
|
1039
1100
|
actionTraceId?: string;
|
|
1040
1101
|
}
|
|
1041
1102
|
|
|
@@ -1043,12 +1104,14 @@ export interface DailyEventObjectDialOutError extends DailyEventObjectBase {
|
|
|
1043
1104
|
action: Extract<DailyEvent, 'dialout-error'>;
|
|
1044
1105
|
errorMsg: string;
|
|
1045
1106
|
sessionId?: string;
|
|
1107
|
+
userId?: string;
|
|
1046
1108
|
actionTraceId?: string;
|
|
1047
1109
|
}
|
|
1048
1110
|
|
|
1049
1111
|
export interface DailyEventObjectDialOutStopped extends DailyEventObjectBase {
|
|
1050
1112
|
action: Extract<DailyEvent, 'dialout-stopped'>;
|
|
1051
1113
|
sessionId?: string;
|
|
1114
|
+
userId?: string;
|
|
1052
1115
|
actionTraceId?: string;
|
|
1053
1116
|
}
|
|
1054
1117
|
|
|
@@ -1056,6 +1119,7 @@ export interface DailyEventObjectDialOutWarning extends DailyEventObjectBase {
|
|
|
1056
1119
|
action: Extract<DailyEvent, 'dialout-warning'>;
|
|
1057
1120
|
errorMsg: string;
|
|
1058
1121
|
sessionId?: string;
|
|
1122
|
+
userId?: string;
|
|
1059
1123
|
actionTraceId?: string;
|
|
1060
1124
|
}
|
|
1061
1125
|
|
|
@@ -1120,6 +1184,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
1120
1184
|
? DailyEventObjectCpuLoadEvent
|
|
1121
1185
|
: T extends DailyEventObjectNetworkConnectionEvent['action']
|
|
1122
1186
|
? DailyEventObjectNetworkConnectionEvent
|
|
1187
|
+
: T extends DailyEventObjectTestCompleted['action']
|
|
1188
|
+
? DailyEventObjectTestCompleted
|
|
1123
1189
|
: T extends DailyEventObjectActiveSpeakerChange['action']
|
|
1124
1190
|
? DailyEventObjectActiveSpeakerChange
|
|
1125
1191
|
: T extends DailyEventObjectReceiveSettingsUpdated['action']
|
|
@@ -1371,6 +1437,7 @@ export interface DailyDialOutSession {
|
|
|
1371
1437
|
export interface DailyStartDialoutSipOptions {
|
|
1372
1438
|
sipUri?: string;
|
|
1373
1439
|
displayName?: string;
|
|
1440
|
+
userId?: string;
|
|
1374
1441
|
video?: boolean;
|
|
1375
1442
|
codecs?: DailyDialOutCodecs;
|
|
1376
1443
|
}
|
|
@@ -1378,7 +1445,9 @@ export interface DailyStartDialoutSipOptions {
|
|
|
1378
1445
|
export interface DailyStartDialoutPhoneOptions {
|
|
1379
1446
|
phoneNumber?: string;
|
|
1380
1447
|
displayName?: string;
|
|
1448
|
+
userId?: string;
|
|
1381
1449
|
codecs?: DailyDialOutCodecs;
|
|
1450
|
+
callerId?: string;
|
|
1382
1451
|
}
|
|
1383
1452
|
|
|
1384
1453
|
export type DailyStartDialoutOptions =
|
|
@@ -1485,6 +1554,17 @@ export interface DailyCall {
|
|
|
1485
1554
|
load(properties?: DailyLoadOptions): Promise<void>;
|
|
1486
1555
|
startScreenShare(properties?: DailyStartScreenShare): void;
|
|
1487
1556
|
stopScreenShare(): void;
|
|
1557
|
+
testPeerToPeerCallQuality(options: {
|
|
1558
|
+
videoTrack: MediaStreamTrack;
|
|
1559
|
+
duration?: number;
|
|
1560
|
+
}): Promise<DailyP2PCallQualityTestResults>;
|
|
1561
|
+
stopTestPeerToPeerCallQuality(): void;
|
|
1562
|
+
testWebsocketConnectivity(): Promise<DailyWebsocketConnectivityTestResults>;
|
|
1563
|
+
abortTestWebsocketConnectivity(): void;
|
|
1564
|
+
testNetworkConnectivity(
|
|
1565
|
+
videoTrack: MediaStreamTrack
|
|
1566
|
+
): Promise<DailyNetworkConnectivityTestStats>;
|
|
1567
|
+
abortTestNetworkConnectivity(): void;
|
|
1488
1568
|
getNetworkStats(): Promise<DailyNetworkStats>;
|
|
1489
1569
|
getCpuLoadStats(): Promise<DailyCpuLoadStats>;
|
|
1490
1570
|
updateSendSettings(settings: DailySendSettings): Promise<DailySendSettings>;
|