@daily-co/react-native-daily-js 0.31.0 → 0.33.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/README.md +1 -1
- package/package.json +4 -4
- package/type-overrides/@daily-co/daily-js/index.d.ts +72 -12
- package/android/build/intermediates/compiled_local_resources/debug/out/drawable_ic_daily_videocam_24dp.xml.flat +0 -0
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +0 -2
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/classes/com/daily/reactlibrary/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/daily/reactlibrary/DailyNativeUtils$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/daily/reactlibrary/DailyNativeUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/daily/reactlibrary/DailyNativeUtilsPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/daily/reactlibrary/DailyOngoingMeetingForegroundService.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -3
- package/android/build/intermediates/packaged_res/debug/drawable/ic_daily_videocam_24dp.xml +0 -9
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/daily/reactlibrary/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/daily/reactlibrary/DailyNativeUtils$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/daily/reactlibrary/DailyNativeUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/daily/reactlibrary/DailyNativeUtilsPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/com/daily/reactlibrary/DailyOngoingMeetingForegroundService.class +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/ios/DailyJs.xcodeproj/xcuserdata/wcarss.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/DailyJs.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/DailyJs.xcworkspace/xcuserdata/wcarss.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Install `react-native-daily-js` along with its peer dependencies:
|
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
17
|
npm i @daily-co/react-native-daily-js @react-native-async-storage/async-storage@^1.15.7 react-native-background-timer@^2.3.1
|
|
18
|
-
npm i --save-exact @daily-co/react-native-webrtc@1.94.1-daily.
|
|
18
|
+
npm i --save-exact @daily-co/react-native-webrtc@1.94.1-daily.7
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Then, follow the below steps to set up your native project on each platform. **Note that these steps assume you're using a version of React Native that supports autolinking (>= 60).**
|
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.33.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,17 +26,17 @@
|
|
|
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.35.0",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@daily-co/react-native-webrtc": "1.94.1-daily.
|
|
34
|
+
"@daily-co/react-native-webrtc": "1.94.1-daily.7",
|
|
35
35
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
36
36
|
"react-native-background-timer": "^2.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@daily-co/react-native-webrtc": "1.94.1-daily.
|
|
39
|
+
"@daily-co/react-native-webrtc": "1.94.1-daily.7",
|
|
40
40
|
"@react-native-async-storage/async-storage": "^1.15.7",
|
|
41
41
|
"react-native-background-timer": "^2.3.1",
|
|
42
42
|
"typescript": "^3.8.3"
|
|
@@ -70,6 +70,7 @@ export type DailyEvent =
|
|
|
70
70
|
| 'remote-media-player-stopped'
|
|
71
71
|
| 'remote-media-player-updated'
|
|
72
72
|
| 'access-state-updated'
|
|
73
|
+
| 'meeting-session-state-updated'
|
|
73
74
|
| 'waiting-participant-added'
|
|
74
75
|
| 'waiting-participant-updated'
|
|
75
76
|
| 'waiting-participant-removed'
|
|
@@ -102,7 +103,10 @@ export type DailyFatalErrorType =
|
|
|
102
103
|
| 'exp-room'
|
|
103
104
|
| 'exp-token';
|
|
104
105
|
|
|
105
|
-
export type DailyNonFatalErrorType =
|
|
106
|
+
export type DailyNonFatalErrorType =
|
|
107
|
+
| 'remote-media-player-error'
|
|
108
|
+
| 'live-streaming-warning'
|
|
109
|
+
| 'meeting-session-data-error';
|
|
106
110
|
|
|
107
111
|
export interface DailyParticipantsObject {
|
|
108
112
|
local: DailyParticipant;
|
|
@@ -148,8 +152,8 @@ export interface DailyAdvancedConfig {
|
|
|
148
152
|
camSimulcastEncodings?: CamSimulcastEncoding[];
|
|
149
153
|
experimentalGetUserMediaConstraintsModify?: (constraints: any) => void;
|
|
150
154
|
micAudioMode?: 'music' | 'speech';
|
|
151
|
-
userMediaAudioConstraints?:
|
|
152
|
-
userMediaVideoConstraints?:
|
|
155
|
+
userMediaAudioConstraints?: MediaTrackConstraints;
|
|
156
|
+
userMediaVideoConstraints?: MediaTrackConstraints;
|
|
153
157
|
preferH264ForCam?: boolean;
|
|
154
158
|
h264Profile?: string;
|
|
155
159
|
}
|
|
@@ -392,6 +396,12 @@ export interface DailyRoomInfo {
|
|
|
392
396
|
dialInPIN?: string;
|
|
393
397
|
}
|
|
394
398
|
|
|
399
|
+
export interface DailyMeetingSessionState {
|
|
400
|
+
data: unknown;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export type DailySessionDataMergeStrategy = 'replace' | 'shallow-merge';
|
|
404
|
+
|
|
395
405
|
export interface DailyVideoReceiveSettings {
|
|
396
406
|
layer?: number;
|
|
397
407
|
}
|
|
@@ -426,11 +436,7 @@ export interface DailyEventObjectNoPayload {
|
|
|
426
436
|
| 'loaded'
|
|
427
437
|
| 'joining-meeting'
|
|
428
438
|
| 'left-meeting'
|
|
429
|
-
| 'recording-stopped'
|
|
430
439
|
| 'recording-stats'
|
|
431
|
-
| 'recording-error'
|
|
432
|
-
| 'live-streaming-started'
|
|
433
|
-
| 'live-streaming-stopped'
|
|
434
440
|
>;
|
|
435
441
|
}
|
|
436
442
|
|
|
@@ -508,13 +514,21 @@ export interface DailyEventObjectNonFatalError {
|
|
|
508
514
|
action: Extract<DailyEvent, 'nonfatal-error'>;
|
|
509
515
|
type: DailyNonFatalErrorType;
|
|
510
516
|
errorMsg: string;
|
|
517
|
+
details?: any;
|
|
511
518
|
}
|
|
512
519
|
|
|
513
520
|
export interface DailyEventObjectGenericError {
|
|
514
|
-
action: Extract<DailyEvent, 'load-attempt-failed'
|
|
521
|
+
action: Extract<DailyEvent, 'load-attempt-failed'>;
|
|
515
522
|
errorMsg: string;
|
|
516
523
|
}
|
|
517
524
|
|
|
525
|
+
export interface DailyEventObjectLiveStreamingError {
|
|
526
|
+
action: Extract<DailyEvent, 'live-streaming-error'>;
|
|
527
|
+
errorMsg: string;
|
|
528
|
+
instanceId?: string;
|
|
529
|
+
actionTraceId?: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
518
532
|
export interface DailyEventObjectParticipants {
|
|
519
533
|
action: Extract<DailyEvent, 'joined-meeting'>;
|
|
520
534
|
participants: DailyParticipantsObject;
|
|
@@ -555,6 +569,11 @@ export interface DailyEventObjectAccessState extends DailyAccessState {
|
|
|
555
569
|
action: Extract<DailyEvent, 'access-state-updated'>;
|
|
556
570
|
}
|
|
557
571
|
|
|
572
|
+
export interface DailyEventObjectMeetingSessionStateUpdated {
|
|
573
|
+
action: Extract<DailyEvent, 'meeting-session-state-updated'>;
|
|
574
|
+
meetingSessionState: DailyMeetingSessionState;
|
|
575
|
+
}
|
|
576
|
+
|
|
558
577
|
export interface DailyEventObjectTrack {
|
|
559
578
|
action: Extract<DailyEvent, 'track-started' | 'track-stopped'>;
|
|
560
579
|
participant: DailyParticipant | null; // null if participant left meeting
|
|
@@ -568,6 +587,19 @@ export interface DailyEventObjectRecordingStarted {
|
|
|
568
587
|
startedBy?: string;
|
|
569
588
|
type?: string;
|
|
570
589
|
layout?: DailyStreamingLayoutConfig;
|
|
590
|
+
instanceId?: string;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export interface DailyEventObjectRecordingStopped {
|
|
594
|
+
action: Extract<DailyEvent, 'recording-stopped'>;
|
|
595
|
+
instanceId?: string;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export interface DailyEventObjectRecordingError {
|
|
599
|
+
action: Extract<DailyEvent, 'recording-error'>;
|
|
600
|
+
errorMsg: string;
|
|
601
|
+
instanceId?: string;
|
|
602
|
+
actionTraceId?: string;
|
|
571
603
|
}
|
|
572
604
|
|
|
573
605
|
export interface DailyEventObjectNetworkQualityEvent {
|
|
@@ -612,6 +644,12 @@ export interface DailyEventObjectAvailableDevicesUpdated {
|
|
|
612
644
|
export interface DailyEventObjectLiveStreamingStarted {
|
|
613
645
|
action: Extract<DailyEvent, 'live-streaming-started'>;
|
|
614
646
|
layout?: DailyStreamingLayoutConfig;
|
|
647
|
+
instanceId?: string;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export interface DailyEventObjectLiveStreamingStopped {
|
|
651
|
+
action: Extract<DailyEvent, 'live-streaming-stopped'>;
|
|
652
|
+
instanceId?: string;
|
|
615
653
|
}
|
|
616
654
|
|
|
617
655
|
export interface DailyEventObjectTranscriptionStarted {
|
|
@@ -658,6 +696,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
658
696
|
? DailyEventObjectGenericError
|
|
659
697
|
: T extends DailyEventObjectParticipants['action']
|
|
660
698
|
? DailyEventObjectParticipants
|
|
699
|
+
: T extends DailyEventObjectLiveStreamingError['action']
|
|
700
|
+
? DailyEventObjectLiveStreamingError
|
|
661
701
|
: T extends DailyEventObjectParticipant['action']
|
|
662
702
|
? DailyEventObjectParticipant
|
|
663
703
|
: T extends DailyEventObjectParticipantLeft['action']
|
|
@@ -668,6 +708,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
668
708
|
? DailyEventObjectWaitingParticipant
|
|
669
709
|
: T extends DailyEventObjectAccessState['action']
|
|
670
710
|
? DailyEventObjectAccessState
|
|
711
|
+
: T extends DailyEventObjectMeetingSessionStateUpdated['action']
|
|
712
|
+
? DailyEventObjectMeetingSessionStateUpdated
|
|
671
713
|
: T extends DailyEventObjectTrack['action']
|
|
672
714
|
? DailyEventObjectTrack
|
|
673
715
|
: T extends DailyEventObjectRecordingStarted['action']
|
|
@@ -772,7 +814,12 @@ export interface DailyStreamingOptions {
|
|
|
772
814
|
width?: number;
|
|
773
815
|
height?: number;
|
|
774
816
|
fps?: number;
|
|
817
|
+
videoBitrate?: number;
|
|
818
|
+
audioBitrate?: number;
|
|
819
|
+
minIdleTimeOut?: number;
|
|
820
|
+
maxDuration?: number;
|
|
775
821
|
backgroundColor?: string;
|
|
822
|
+
instanceId?: string;
|
|
776
823
|
layout?: DailyStreamingLayoutConfig;
|
|
777
824
|
}
|
|
778
825
|
|
|
@@ -882,14 +929,19 @@ export interface DailyCall {
|
|
|
882
929
|
): DailyCall;
|
|
883
930
|
getInputDevices(): Promise<DailyDeviceInfos>;
|
|
884
931
|
startLiveStreaming(options: DailyLiveStreamingOptions): void;
|
|
885
|
-
updateLiveStreaming(options: {
|
|
932
|
+
updateLiveStreaming(options: {
|
|
933
|
+
layout?: DailyStreamingLayoutConfig;
|
|
934
|
+
instanceId?: string;
|
|
935
|
+
}): void;
|
|
886
936
|
addLiveStreamingEndpoints(options: {
|
|
887
937
|
endpoints: DailyStreamingEndpoint[];
|
|
938
|
+
instanceId?: string;
|
|
888
939
|
}): void;
|
|
889
940
|
removeLiveStreamingEndpoints(options: {
|
|
890
941
|
endpoints: DailyStreamingEndpoint[];
|
|
942
|
+
instanceId?: string;
|
|
891
943
|
}): void;
|
|
892
|
-
stopLiveStreaming(): void;
|
|
944
|
+
stopLiveStreaming(options?: { instanceId: string }): void;
|
|
893
945
|
startRemoteMediaPlayer(
|
|
894
946
|
options: DailyRemoteMediaPlayerStartOptions
|
|
895
947
|
): Promise<DailyRemoteMediaPlayerInfo>;
|
|
@@ -902,13 +954,21 @@ export interface DailyCall {
|
|
|
902
954
|
preAuth(properties?: DailyCallOptions): Promise<{ access: DailyAccess }>;
|
|
903
955
|
load(properties?: DailyLoadOptions): Promise<void>;
|
|
904
956
|
startRecording(options?: DailyStreamingOptions): void;
|
|
905
|
-
updateRecording(options: {
|
|
906
|
-
|
|
957
|
+
updateRecording(options: {
|
|
958
|
+
layout?: DailyStreamingLayoutConfig;
|
|
959
|
+
instanceId?: string;
|
|
960
|
+
}): void;
|
|
961
|
+
stopRecording(options?: { instanceId: string }): void;
|
|
907
962
|
getNetworkStats(): Promise<DailyNetworkStats>;
|
|
908
963
|
subscribeToTracksAutomatically(): boolean;
|
|
909
964
|
setSubscribeToTracksAutomatically(enabled: boolean): DailyCall;
|
|
910
965
|
enumerateDevices(): Promise<{ devices: MediaDeviceInfo[] }>;
|
|
911
966
|
sendAppMessage(data: any, to?: string): DailyCall;
|
|
967
|
+
meetingSessionState(): DailyMeetingSessionState;
|
|
968
|
+
setMeetingSessionData(
|
|
969
|
+
data: unknown,
|
|
970
|
+
mergeStrategy?: DailySessionDataMergeStrategy
|
|
971
|
+
): void;
|
|
912
972
|
setUserName(name: string): Promise<{ userName: string }>;
|
|
913
973
|
setUserData(data: unknown): Promise<{ userData: unknown }>;
|
|
914
974
|
room(options?: {
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/wcarss/code/react-native-daily-js/android/src/main/res"/><source path="/Users/wcarss/code/react-native-daily-js/android/build/generated/res/rs/debug"/><source path="/Users/wcarss/code/react-native-daily-js/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/wcarss/code/react-native-daily-js/android/src/main/res"><file name="ic_daily_videocam_24dp" path="/Users/wcarss/code/react-native-daily-js/android/src/main/res/drawable/ic_daily_videocam_24dp.xml" qualifiers="" type="drawable"/></source><source path="/Users/wcarss/code/react-native-daily-js/android/build/generated/res/rs/debug"/><source path="/Users/wcarss/code/react-native-daily-js/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/wcarss/code/react-native-daily-js/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/wcarss/code/react-native-daily-js/android/src/debug/res"/></dataSet><mergedItems/></merger>
|
package/android/build/intermediates/javac/debug/classes/com/daily/reactlibrary/BuildConfig.class
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
android:width="24dp"
|
|
3
|
-
android:height="24dp"
|
|
4
|
-
android:viewportWidth="24.0"
|
|
5
|
-
android:viewportHeight="24.0">
|
|
6
|
-
<path
|
|
7
|
-
android:fillColor="#FF000000"
|
|
8
|
-
android:pathData="M17,10.5V7c0,-0.55 -0.45,-1 -1,-1H4c-0.55,0 -1,0.45 -1,1v10c0,0.55 0.45,1 1,1h12c0.55,0 1,-0.45 1,-1v-3.5l4,4v-11l-4,4z"/>
|
|
9
|
-
</vector>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/DailyJs.xcodeproj/xcuserdata/wcarss.xcuserdatad/xcschemes/xcschememanagement.plist
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>DailyJs.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|