@daily-co/react-native-daily-js 0.35.0 → 0.38.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.38.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.40.0",
|
|
30
30
|
"@types/react-native-background-timer": "^2.0.0",
|
|
31
31
|
"react-native-url-polyfill": "^1.1.2"
|
|
32
32
|
},
|
|
@@ -64,6 +64,7 @@ export type DailyEvent =
|
|
|
64
64
|
| 'error'
|
|
65
65
|
| 'nonfatal-error'
|
|
66
66
|
| 'live-streaming-started'
|
|
67
|
+
| 'live-streaming-updated'
|
|
67
68
|
| 'live-streaming-stopped'
|
|
68
69
|
| 'live-streaming-error'
|
|
69
70
|
| 'remote-media-player-started'
|
|
@@ -124,6 +125,7 @@ export interface DailyBrowserInfo {
|
|
|
124
125
|
supportsScreenShare: boolean;
|
|
125
126
|
supportsSfu: boolean;
|
|
126
127
|
supportsVideoProcessing: boolean;
|
|
128
|
+
supportsAudioProcessing: boolean;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
export interface DailyCallOptions {
|
|
@@ -145,6 +147,10 @@ export interface DailyLoadOptions extends DailyCallOptions {
|
|
|
145
147
|
baseUrl?: string;
|
|
146
148
|
}
|
|
147
149
|
|
|
150
|
+
export interface DailyFactoryOptions extends DailyCallOptions {
|
|
151
|
+
srictMode?: boolean; // only available at constructor time
|
|
152
|
+
}
|
|
153
|
+
|
|
148
154
|
export interface CamSimulcastEncoding {
|
|
149
155
|
maxBitrate: number;
|
|
150
156
|
maxFramerate?: number;
|
|
@@ -266,6 +272,10 @@ export interface DailyWaitingParticipant {
|
|
|
266
272
|
|
|
267
273
|
export type DailyTrackSubscriptionState = 'staged' | boolean;
|
|
268
274
|
|
|
275
|
+
export type DailyCustomTrackSubscriptionState =
|
|
276
|
+
| DailyTrackSubscriptionState
|
|
277
|
+
| { [name: string]: DailyTrackSubscriptionState };
|
|
278
|
+
|
|
269
279
|
export type DailyTrackSubscriptionOptions =
|
|
270
280
|
| DailyTrackSubscriptionState
|
|
271
281
|
| {
|
|
@@ -273,6 +283,7 @@ export type DailyTrackSubscriptionOptions =
|
|
|
273
283
|
video?: DailyTrackSubscriptionState;
|
|
274
284
|
screenVideo?: DailyTrackSubscriptionState;
|
|
275
285
|
screenAudio?: DailyTrackSubscriptionState;
|
|
286
|
+
custom?: DailyCustomTrackSubscriptionState;
|
|
276
287
|
};
|
|
277
288
|
|
|
278
289
|
export interface DailyParticipantUpdateOptions {
|
|
@@ -339,6 +350,7 @@ export interface DailyRoomInfo {
|
|
|
339
350
|
enable_chat?: boolean;
|
|
340
351
|
enable_knocking?: boolean;
|
|
341
352
|
enable_network_ui?: boolean;
|
|
353
|
+
enable_noise_cancellation_ui?: boolean;
|
|
342
354
|
enable_people_ui?: boolean;
|
|
343
355
|
enable_pip_ui?: boolean;
|
|
344
356
|
enable_hand_raising?: boolean;
|
|
@@ -373,6 +385,7 @@ export interface DailyRoomInfo {
|
|
|
373
385
|
enable_breakout_rooms?: boolean;
|
|
374
386
|
enable_emoji_reactions?: boolean;
|
|
375
387
|
enable_network_ui?: boolean;
|
|
388
|
+
enable_noise_cancellation_ui?: boolean;
|
|
376
389
|
enable_people_ui?: boolean;
|
|
377
390
|
enable_pip_ui?: boolean;
|
|
378
391
|
enable_hand_raising?: boolean;
|
|
@@ -581,6 +594,14 @@ export interface DailyEventObjectTrack {
|
|
|
581
594
|
action: Extract<DailyEvent, 'track-started' | 'track-stopped'>;
|
|
582
595
|
participant: DailyParticipant | null; // null if participant left meeting
|
|
583
596
|
track: MediaStreamTrack;
|
|
597
|
+
type:
|
|
598
|
+
| 'video'
|
|
599
|
+
| 'audio'
|
|
600
|
+
| 'screenVideo'
|
|
601
|
+
| 'screenAudio'
|
|
602
|
+
| 'rmpVideo'
|
|
603
|
+
| 'rmpAudio'
|
|
604
|
+
| string; // string - for custom tracks
|
|
584
605
|
}
|
|
585
606
|
|
|
586
607
|
export interface DailyEventObjectRecordingStarted {
|
|
@@ -649,6 +670,12 @@ export interface DailyEventObjectLiveStreamingStarted {
|
|
|
649
670
|
layout?: DailyStreamingLayoutConfig;
|
|
650
671
|
instanceId?: string;
|
|
651
672
|
}
|
|
673
|
+
export interface DailyEventObjectLiveStreamingUpdated {
|
|
674
|
+
action: Extract<DailyEvent, 'live-streaming-updated'>;
|
|
675
|
+
endpoint?: DailyStreamingEndpoint;
|
|
676
|
+
state: DailyStreamingState;
|
|
677
|
+
instanceId?: string;
|
|
678
|
+
}
|
|
652
679
|
|
|
653
680
|
export interface DailyEventObjectLiveStreamingStopped {
|
|
654
681
|
action: Extract<DailyEvent, 'live-streaming-stopped'>;
|
|
@@ -699,6 +726,12 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
699
726
|
? DailyEventObjectGenericError
|
|
700
727
|
: T extends DailyEventObjectParticipants['action']
|
|
701
728
|
? DailyEventObjectParticipants
|
|
729
|
+
: T extends DailyEventObjectLiveStreamingStarted['action']
|
|
730
|
+
? DailyEventObjectLiveStreamingStarted
|
|
731
|
+
: T extends DailyEventObjectLiveStreamingUpdated['action']
|
|
732
|
+
? DailyEventObjectLiveStreamingUpdated
|
|
733
|
+
: T extends DailyEventObjectLiveStreamingStopped['action']
|
|
734
|
+
? DailyEventObjectLiveStreamingStopped
|
|
702
735
|
: T extends DailyEventObjectLiveStreamingError['action']
|
|
703
736
|
? DailyEventObjectLiveStreamingError
|
|
704
737
|
: T extends DailyEventObjectParticipant['action']
|
|
@@ -717,6 +750,10 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
717
750
|
? DailyEventObjectTrack
|
|
718
751
|
: T extends DailyEventObjectRecordingStarted['action']
|
|
719
752
|
? DailyEventObjectRecordingStarted
|
|
753
|
+
: T extends DailyEventObjectRecordingStopped['action']
|
|
754
|
+
? DailyEventObjectRecordingStopped
|
|
755
|
+
: T extends DailyEventObjectRecordingError['action']
|
|
756
|
+
? DailyEventObjectRecordingError
|
|
720
757
|
: T extends DailyEventObjectRemoteMediaPlayerUpdate['action']
|
|
721
758
|
? DailyEventObjectRemoteMediaPlayerUpdate
|
|
722
759
|
: T extends DailyEventObjectRemoteMediaPlayerStopped['action']
|
|
@@ -736,7 +773,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
736
773
|
export type DailyNativeInCallAudioMode = 'video' | 'voice';
|
|
737
774
|
|
|
738
775
|
export interface DailyCallFactory {
|
|
739
|
-
createCallObject(properties?:
|
|
776
|
+
createCallObject(properties?: DailyFactoryOptions): DailyCall;
|
|
777
|
+
getCallInstance(): DailyCall;
|
|
740
778
|
}
|
|
741
779
|
|
|
742
780
|
export interface DailyCallStaticUtils {
|
|
@@ -785,6 +823,8 @@ export type DailyStreamingLayoutConfig =
|
|
|
785
823
|
| DailyStreamingPortraitLayoutConfig
|
|
786
824
|
| DailyStreamingCustomLayoutConfig;
|
|
787
825
|
|
|
826
|
+
export type DailyStreamingState = 'connected' | 'interrupted';
|
|
827
|
+
|
|
788
828
|
export type DailyRemoteMediaPlayerSettingPlay = 'play';
|
|
789
829
|
export type DailyRemoteMediaPlayerSettingPause = 'pause';
|
|
790
830
|
|
|
@@ -874,13 +914,14 @@ export interface DailyTranscriptionDeepgramOptions {
|
|
|
874
914
|
model?: string;
|
|
875
915
|
tier?: string;
|
|
876
916
|
profanity_filter?: boolean;
|
|
877
|
-
redact?: boolean;
|
|
917
|
+
redact?: Array<string> | boolean;
|
|
878
918
|
}
|
|
879
919
|
|
|
880
920
|
export interface DailyCall {
|
|
881
921
|
join(properties?: DailyCallOptions): Promise<DailyParticipantsObject | void>;
|
|
882
922
|
leave(): Promise<void>;
|
|
883
923
|
destroy(): Promise<void>;
|
|
924
|
+
isDestroyed(): boolean;
|
|
884
925
|
meetingState(): DailyMeetingState;
|
|
885
926
|
accessState(): DailyAccessState;
|
|
886
927
|
participants(): DailyParticipantsObject;
|