@daily-co/react-native-daily-js 0.63.0 → 0.65.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.65.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.67.0",
|
|
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"
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
MediaStreamTrack,
|
|
11
11
|
MediaDeviceInfo,
|
|
12
12
|
MediaTrackConstraints,
|
|
13
|
-
MediaStream,
|
|
14
13
|
} from '@daily-co/react-native-webrtc';
|
|
15
14
|
|
|
16
15
|
import RTCRtpEncodingParameters from '@daily-co/react-native-webrtc/lib/typescript/RTCRtpEncodingParameters';
|
|
@@ -646,7 +645,12 @@ export interface DailyReceiveSettingsUpdates {
|
|
|
646
645
|
| 'inherit';
|
|
647
646
|
}
|
|
648
647
|
|
|
649
|
-
export
|
|
648
|
+
export type DailyEventObjectBase = {
|
|
649
|
+
action: DailyEvent;
|
|
650
|
+
callClientId: string;
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
export interface DailyEventObjectNoPayload extends DailyEventObjectBase {
|
|
650
654
|
action: Extract<
|
|
651
655
|
DailyEvent,
|
|
652
656
|
| 'loading'
|
|
@@ -708,7 +712,7 @@ export type DailyCameraErrorObject<T extends DailyCameraErrorType> =
|
|
|
708
712
|
? DailyCamUnknownError
|
|
709
713
|
: any;
|
|
710
714
|
|
|
711
|
-
export interface DailyEventObjectCameraError {
|
|
715
|
+
export interface DailyEventObjectCameraError extends DailyEventObjectBase {
|
|
712
716
|
action: Extract<DailyEvent, 'camera-error'>;
|
|
713
717
|
errorMsg: {
|
|
714
718
|
errorMsg: string;
|
|
@@ -744,37 +748,38 @@ export interface DailyFatalConnectionError extends DailyFatalError {
|
|
|
744
748
|
export type DailyFatalErrorObject<T extends DailyFatalErrorType> =
|
|
745
749
|
T extends DailyFatalConnectionError['type'] ? DailyFatalConnectionError : any;
|
|
746
750
|
|
|
747
|
-
export interface DailyEventObjectFatalError {
|
|
751
|
+
export interface DailyEventObjectFatalError extends DailyEventObjectBase {
|
|
748
752
|
action: Extract<DailyEvent, 'error'>;
|
|
749
753
|
errorMsg: string;
|
|
750
754
|
error?: DailyFatalErrorObject<DailyFatalErrorType>;
|
|
751
755
|
}
|
|
752
756
|
|
|
753
|
-
export interface DailyEventObjectNonFatalError {
|
|
757
|
+
export interface DailyEventObjectNonFatalError extends DailyEventObjectBase {
|
|
754
758
|
action: Extract<DailyEvent, 'nonfatal-error'>;
|
|
755
759
|
type: DailyNonFatalErrorType;
|
|
756
760
|
errorMsg: string;
|
|
757
761
|
details?: any;
|
|
758
762
|
}
|
|
759
763
|
|
|
760
|
-
export interface DailyEventObjectGenericError {
|
|
764
|
+
export interface DailyEventObjectGenericError extends DailyEventObjectBase {
|
|
761
765
|
action: Extract<DailyEvent, 'load-attempt-failed'>;
|
|
762
766
|
errorMsg: string;
|
|
763
767
|
}
|
|
764
768
|
|
|
765
|
-
export interface DailyEventObjectLiveStreamingError
|
|
769
|
+
export interface DailyEventObjectLiveStreamingError
|
|
770
|
+
extends DailyEventObjectBase {
|
|
766
771
|
action: Extract<DailyEvent, 'live-streaming-error'>;
|
|
767
772
|
errorMsg: string;
|
|
768
773
|
instanceId?: string;
|
|
769
774
|
actionTraceId?: string;
|
|
770
775
|
}
|
|
771
776
|
|
|
772
|
-
export interface DailyEventObjectParticipants {
|
|
777
|
+
export interface DailyEventObjectParticipants extends DailyEventObjectBase {
|
|
773
778
|
action: Extract<DailyEvent, 'joined-meeting'>;
|
|
774
779
|
participants: DailyParticipantsObject;
|
|
775
780
|
}
|
|
776
781
|
|
|
777
|
-
export interface DailyEventObjectParticipant {
|
|
782
|
+
export interface DailyEventObjectParticipant extends DailyEventObjectBase {
|
|
778
783
|
action: Extract<DailyEvent, 'participant-joined' | 'participant-updated'>;
|
|
779
784
|
participant: DailyParticipant;
|
|
780
785
|
}
|
|
@@ -782,7 +787,7 @@ export interface DailyEventObjectParticipant {
|
|
|
782
787
|
// only 1 reason reported for now. more to come.
|
|
783
788
|
export type DailyParticipantLeftReason = 'hidden';
|
|
784
789
|
|
|
785
|
-
export interface DailyEventObjectParticipantLeft {
|
|
790
|
+
export interface DailyEventObjectParticipantLeft extends DailyEventObjectBase {
|
|
786
791
|
action: Extract<DailyEvent, 'participant-left'>;
|
|
787
792
|
participant: DailyParticipant;
|
|
788
793
|
// reason undefined if participant left for any reason other than those listed
|
|
@@ -790,12 +795,14 @@ export interface DailyEventObjectParticipantLeft {
|
|
|
790
795
|
reason?: DailyParticipantLeftReason;
|
|
791
796
|
}
|
|
792
797
|
|
|
793
|
-
export interface DailyEventObjectParticipantCounts
|
|
798
|
+
export interface DailyEventObjectParticipantCounts
|
|
799
|
+
extends DailyEventObjectBase {
|
|
794
800
|
action: Extract<DailyEvent, 'participant-counts-updated'>;
|
|
795
801
|
participantCounts: DailyParticipantCounts;
|
|
796
802
|
}
|
|
797
803
|
|
|
798
|
-
export interface DailyEventObjectWaitingParticipant
|
|
804
|
+
export interface DailyEventObjectWaitingParticipant
|
|
805
|
+
extends DailyEventObjectBase {
|
|
799
806
|
action: Extract<
|
|
800
807
|
DailyEvent,
|
|
801
808
|
| 'waiting-participant-added'
|
|
@@ -805,21 +812,25 @@ export interface DailyEventObjectWaitingParticipant {
|
|
|
805
812
|
participant: DailyWaitingParticipant;
|
|
806
813
|
}
|
|
807
814
|
|
|
808
|
-
export interface DailyEventObjectAccessState
|
|
815
|
+
export interface DailyEventObjectAccessState
|
|
816
|
+
extends DailyAccessState,
|
|
817
|
+
DailyEventObjectBase {
|
|
809
818
|
action: Extract<DailyEvent, 'access-state-updated'>;
|
|
810
819
|
}
|
|
811
820
|
|
|
812
|
-
export interface DailyEventObjectMeetingSessionSummaryUpdated
|
|
821
|
+
export interface DailyEventObjectMeetingSessionSummaryUpdated
|
|
822
|
+
extends DailyEventObjectBase {
|
|
813
823
|
action: Extract<DailyEvent, 'meeting-session-summary-updated'>;
|
|
814
824
|
meetingSession: DailyMeetingSessionSummary;
|
|
815
825
|
}
|
|
816
826
|
|
|
817
|
-
export interface DailyEventObjectMeetingSessionStateUpdated
|
|
827
|
+
export interface DailyEventObjectMeetingSessionStateUpdated
|
|
828
|
+
extends DailyEventObjectBase {
|
|
818
829
|
action: Extract<DailyEvent, 'meeting-session-state-updated'>;
|
|
819
830
|
meetingSessionState: DailyMeetingSessionState;
|
|
820
831
|
}
|
|
821
832
|
|
|
822
|
-
export interface DailyEventObjectTrack {
|
|
833
|
+
export interface DailyEventObjectTrack extends DailyEventObjectBase {
|
|
823
834
|
action: Extract<DailyEvent, 'track-started' | 'track-stopped'>;
|
|
824
835
|
participant: DailyParticipant | null; // null if participant left meeting
|
|
825
836
|
track: MediaStreamTrack;
|
|
@@ -833,7 +844,7 @@ export interface DailyEventObjectTrack {
|
|
|
833
844
|
| string; // string - for custom tracks
|
|
834
845
|
}
|
|
835
846
|
|
|
836
|
-
export interface DailyEventObjectRecordingStarted {
|
|
847
|
+
export interface DailyEventObjectRecordingStarted extends DailyEventObjectBase {
|
|
837
848
|
action: Extract<DailyEvent, 'recording-started'>;
|
|
838
849
|
local?: boolean;
|
|
839
850
|
recordingId?: string;
|
|
@@ -843,25 +854,26 @@ export interface DailyEventObjectRecordingStarted {
|
|
|
843
854
|
instanceId?: string;
|
|
844
855
|
}
|
|
845
856
|
|
|
846
|
-
export interface DailyEventObjectRecordingStopped {
|
|
857
|
+
export interface DailyEventObjectRecordingStopped extends DailyEventObjectBase {
|
|
847
858
|
action: Extract<DailyEvent, 'recording-stopped'>;
|
|
848
859
|
instanceId?: string;
|
|
849
860
|
}
|
|
850
861
|
|
|
851
|
-
export interface DailyEventObjectRecordingError {
|
|
862
|
+
export interface DailyEventObjectRecordingError extends DailyEventObjectBase {
|
|
852
863
|
action: Extract<DailyEvent, 'recording-error'>;
|
|
853
864
|
errorMsg: string;
|
|
854
865
|
instanceId?: string;
|
|
855
866
|
actionTraceId?: string;
|
|
856
867
|
}
|
|
857
868
|
|
|
858
|
-
export interface DailyEventObjectNetworkQualityEvent
|
|
869
|
+
export interface DailyEventObjectNetworkQualityEvent
|
|
870
|
+
extends DailyEventObjectBase {
|
|
859
871
|
action: Extract<DailyEvent, 'network-quality-change'>;
|
|
860
872
|
threshold: string;
|
|
861
873
|
quality: number;
|
|
862
874
|
}
|
|
863
875
|
|
|
864
|
-
export interface DailyEventObjectCpuLoadEvent {
|
|
876
|
+
export interface DailyEventObjectCpuLoadEvent extends DailyEventObjectBase {
|
|
865
877
|
action: Extract<DailyEvent, 'cpu-load-change'>;
|
|
866
878
|
cpuLoadState: 'low' | 'high';
|
|
867
879
|
cpuLoadStateReason: 'encode' | 'decode' | 'scheduleDuration' | 'none'; // We are currently not using the Inter frame Delay to change the cpu load state
|
|
@@ -869,7 +881,8 @@ export interface DailyEventObjectCpuLoadEvent {
|
|
|
869
881
|
|
|
870
882
|
export type DailyNetworkConnectionType = 'signaling' | 'peer-to-peer' | 'sfu';
|
|
871
883
|
|
|
872
|
-
export interface DailyEventObjectNetworkConnectionEvent
|
|
884
|
+
export interface DailyEventObjectNetworkConnectionEvent
|
|
885
|
+
extends DailyEventObjectBase {
|
|
873
886
|
action: Extract<DailyEvent, 'network-connection'>;
|
|
874
887
|
type: DailyNetworkConnectionType;
|
|
875
888
|
event: string;
|
|
@@ -877,20 +890,22 @@ export interface DailyEventObjectNetworkConnectionEvent {
|
|
|
877
890
|
sfu_id?: string;
|
|
878
891
|
}
|
|
879
892
|
|
|
880
|
-
export interface DailyEventObjectActiveSpeakerChange
|
|
893
|
+
export interface DailyEventObjectActiveSpeakerChange
|
|
894
|
+
extends DailyEventObjectBase {
|
|
881
895
|
action: Extract<DailyEvent, 'active-speaker-change'>;
|
|
882
896
|
activeSpeaker: {
|
|
883
897
|
peerId: string;
|
|
884
898
|
};
|
|
885
899
|
}
|
|
886
900
|
|
|
887
|
-
export interface DailyEventObjectAppMessage {
|
|
901
|
+
export interface DailyEventObjectAppMessage extends DailyEventObjectBase {
|
|
888
902
|
action: Extract<DailyEvent, 'app-message'>;
|
|
889
903
|
data: any;
|
|
890
904
|
fromId: string;
|
|
891
905
|
}
|
|
892
906
|
|
|
893
|
-
export interface DailyEventObjectTranscriptionMessage
|
|
907
|
+
export interface DailyEventObjectTranscriptionMessage
|
|
908
|
+
extends DailyEventObjectBase {
|
|
894
909
|
action: Extract<DailyEvent, 'transcription-message'>;
|
|
895
910
|
participantId: string;
|
|
896
911
|
text: string;
|
|
@@ -898,49 +913,57 @@ export interface DailyEventObjectTranscriptionMessage {
|
|
|
898
913
|
rawResponse: Record<string, any>;
|
|
899
914
|
}
|
|
900
915
|
|
|
901
|
-
export interface DailyEventObjectReceiveSettingsUpdated
|
|
916
|
+
export interface DailyEventObjectReceiveSettingsUpdated
|
|
917
|
+
extends DailyEventObjectBase {
|
|
902
918
|
action: Extract<DailyEvent, 'receive-settings-updated'>;
|
|
903
919
|
receiveSettings: DailyReceiveSettings;
|
|
904
920
|
}
|
|
905
921
|
|
|
906
|
-
export interface DailyEventObjectAvailableDevicesUpdated
|
|
922
|
+
export interface DailyEventObjectAvailableDevicesUpdated
|
|
923
|
+
extends DailyEventObjectBase {
|
|
907
924
|
action: Extract<DailyEvent, 'available-devices-updated'>;
|
|
908
925
|
availableDevices: MediaDeviceInfo[];
|
|
909
926
|
}
|
|
910
927
|
|
|
911
|
-
export interface DailyEventObjectSendSettingsUpdated
|
|
928
|
+
export interface DailyEventObjectSendSettingsUpdated
|
|
929
|
+
extends DailyEventObjectBase {
|
|
912
930
|
action: Extract<DailyEvent, 'send-settings-updated'>;
|
|
913
931
|
sendSettings: DailySendSettings;
|
|
914
932
|
}
|
|
915
933
|
|
|
916
|
-
export interface DailyEventObjectLocalAudioLevel {
|
|
934
|
+
export interface DailyEventObjectLocalAudioLevel extends DailyEventObjectBase {
|
|
917
935
|
action: Extract<DailyEvent, 'local-audio-level'>;
|
|
918
936
|
audioLevel: number;
|
|
919
937
|
}
|
|
920
938
|
|
|
921
|
-
export interface DailyEventObjectRemoteParticipantsAudioLevel
|
|
939
|
+
export interface DailyEventObjectRemoteParticipantsAudioLevel
|
|
940
|
+
extends DailyEventObjectBase {
|
|
922
941
|
action: Extract<DailyEvent, 'remote-participants-audio-level'>;
|
|
923
942
|
participantsAudioLevel: DailyParticipantsAudioLevel;
|
|
924
943
|
}
|
|
925
944
|
|
|
926
|
-
export interface DailyEventObjectLiveStreamingStarted
|
|
945
|
+
export interface DailyEventObjectLiveStreamingStarted
|
|
946
|
+
extends DailyEventObjectBase {
|
|
927
947
|
action: Extract<DailyEvent, 'live-streaming-started'>;
|
|
928
948
|
layout?: DailyLiveStreamingLayoutConfig<'start'>;
|
|
929
949
|
instanceId?: string;
|
|
930
950
|
}
|
|
931
|
-
export interface DailyEventObjectLiveStreamingUpdated
|
|
951
|
+
export interface DailyEventObjectLiveStreamingUpdated
|
|
952
|
+
extends DailyEventObjectBase {
|
|
932
953
|
action: Extract<DailyEvent, 'live-streaming-updated'>;
|
|
933
954
|
endpoint?: DailyStreamingEndpoint;
|
|
934
955
|
state: DailyStreamingState;
|
|
935
956
|
instanceId?: string;
|
|
936
957
|
}
|
|
937
958
|
|
|
938
|
-
export interface DailyEventObjectLiveStreamingStopped
|
|
959
|
+
export interface DailyEventObjectLiveStreamingStopped
|
|
960
|
+
extends DailyEventObjectBase {
|
|
939
961
|
action: Extract<DailyEvent, 'live-streaming-stopped'>;
|
|
940
962
|
instanceId?: string;
|
|
941
963
|
}
|
|
942
964
|
|
|
943
|
-
export interface DailyEventObjectTranscriptionStarted
|
|
965
|
+
export interface DailyEventObjectTranscriptionStarted
|
|
966
|
+
extends DailyEventObjectBase {
|
|
944
967
|
action: Extract<DailyEvent, 'transcription-started'>;
|
|
945
968
|
transcriptId?: string;
|
|
946
969
|
language: string;
|
|
@@ -955,12 +978,19 @@ export interface DailyEventObjectTranscriptionStarted {
|
|
|
955
978
|
startedBy: string;
|
|
956
979
|
}
|
|
957
980
|
|
|
958
|
-
export interface DailyEventObjectTranscriptionStopped
|
|
981
|
+
export interface DailyEventObjectTranscriptionStopped
|
|
982
|
+
extends DailyEventObjectBase {
|
|
959
983
|
action: Extract<DailyEvent, 'transcription-stopped'>;
|
|
960
984
|
updatedBy: string;
|
|
961
985
|
}
|
|
962
986
|
|
|
963
|
-
export interface
|
|
987
|
+
export interface DailyEventObjectTranscriptionError
|
|
988
|
+
extends DailyEventObjectBase {
|
|
989
|
+
action: Extract<DailyEvent, 'transcription-error'>;
|
|
990
|
+
errorMsg?: string;
|
|
991
|
+
}
|
|
992
|
+
export interface DailyEventObjectRemoteMediaPlayerUpdate
|
|
993
|
+
extends DailyEventObjectBase {
|
|
964
994
|
action: Extract<
|
|
965
995
|
DailyEvent,
|
|
966
996
|
'remote-media-player-started' | 'remote-media-player-updated'
|
|
@@ -970,54 +1000,55 @@ export interface DailyEventObjectRemoteMediaPlayerUpdate {
|
|
|
970
1000
|
remoteMediaPlayerState: DailyRemoteMediaPlayerState;
|
|
971
1001
|
}
|
|
972
1002
|
|
|
973
|
-
export interface DailyEventObjectRemoteMediaPlayerStopped
|
|
1003
|
+
export interface DailyEventObjectRemoteMediaPlayerStopped
|
|
1004
|
+
extends DailyEventObjectBase {
|
|
974
1005
|
action: Extract<DailyEvent, 'remote-media-player-stopped'>;
|
|
975
1006
|
session_id: string;
|
|
976
1007
|
updatedBy: string;
|
|
977
1008
|
reason: DailyRemoteMediaPlayerStopReason;
|
|
978
1009
|
}
|
|
979
|
-
export interface DailyEventObjectDialinConnected {
|
|
1010
|
+
export interface DailyEventObjectDialinConnected extends DailyEventObjectBase {
|
|
980
1011
|
action: Extract<DailyEvent, 'dialin-connected'>;
|
|
981
1012
|
actionTraceId?: string;
|
|
982
1013
|
}
|
|
983
1014
|
|
|
984
|
-
export interface DailyEventObjectDialinError {
|
|
1015
|
+
export interface DailyEventObjectDialinError extends DailyEventObjectBase {
|
|
985
1016
|
action: Extract<DailyEvent, 'dialin-error'>;
|
|
986
1017
|
errorMsg: string;
|
|
987
1018
|
actionTraceId?: string;
|
|
988
1019
|
}
|
|
989
1020
|
|
|
990
|
-
export interface DailyEventObjectDialinStopped {
|
|
1021
|
+
export interface DailyEventObjectDialinStopped extends DailyEventObjectBase {
|
|
991
1022
|
action: Extract<DailyEvent, 'dialin-stopped'>;
|
|
992
1023
|
actionTraceId?: string;
|
|
993
1024
|
}
|
|
994
1025
|
|
|
995
|
-
export interface DailyEventObjectDialinWarning {
|
|
1026
|
+
export interface DailyEventObjectDialinWarning extends DailyEventObjectBase {
|
|
996
1027
|
action: Extract<DailyEvent, 'dialin-warning'>;
|
|
997
1028
|
errorMsg: string;
|
|
998
1029
|
actionTraceId?: string;
|
|
999
1030
|
}
|
|
1000
1031
|
|
|
1001
|
-
export interface DailyEventObjectDialOutConnected {
|
|
1032
|
+
export interface DailyEventObjectDialOutConnected extends DailyEventObjectBase {
|
|
1002
1033
|
action: Extract<DailyEvent, 'dialout-connected'>;
|
|
1003
1034
|
sessionId?: string;
|
|
1004
1035
|
actionTraceId?: string;
|
|
1005
1036
|
}
|
|
1006
1037
|
|
|
1007
|
-
export interface DailyEventObjectDialOutError {
|
|
1038
|
+
export interface DailyEventObjectDialOutError extends DailyEventObjectBase {
|
|
1008
1039
|
action: Extract<DailyEvent, 'dialout-error'>;
|
|
1009
1040
|
errorMsg: string;
|
|
1010
1041
|
sessionId?: string;
|
|
1011
1042
|
actionTraceId?: string;
|
|
1012
1043
|
}
|
|
1013
1044
|
|
|
1014
|
-
export interface DailyEventObjectDialOutStopped {
|
|
1045
|
+
export interface DailyEventObjectDialOutStopped extends DailyEventObjectBase {
|
|
1015
1046
|
action: Extract<DailyEvent, 'dialout-stopped'>;
|
|
1016
1047
|
sessionId?: string;
|
|
1017
1048
|
actionTraceId?: string;
|
|
1018
1049
|
}
|
|
1019
1050
|
|
|
1020
|
-
export interface DailyEventObjectDialOutWarning {
|
|
1051
|
+
export interface DailyEventObjectDialOutWarning extends DailyEventObjectBase {
|
|
1021
1052
|
action: Extract<DailyEvent, 'dialout-warning'>;
|
|
1022
1053
|
errorMsg: string;
|
|
1023
1054
|
sessionId?: string;
|
|
@@ -1027,8 +1058,6 @@ export interface DailyEventObjectDialOutWarning {
|
|
|
1027
1058
|
export type DailyEventObject<T extends DailyEvent = any> =
|
|
1028
1059
|
T extends DailyEventObjectAppMessage['action']
|
|
1029
1060
|
? DailyEventObjectAppMessage
|
|
1030
|
-
: T extends DailyEventObjectTranscriptionMessage['action']
|
|
1031
|
-
? DailyEventObjectTranscriptionMessage
|
|
1032
1061
|
: T extends DailyEventObjectNoPayload['action']
|
|
1033
1062
|
? DailyEventObjectNoPayload
|
|
1034
1063
|
: T extends DailyEventObjectCameraError['action']
|
|
@@ -1049,6 +1078,14 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
1049
1078
|
? DailyEventObjectLiveStreamingStopped
|
|
1050
1079
|
: T extends DailyEventObjectLiveStreamingError['action']
|
|
1051
1080
|
? DailyEventObjectLiveStreamingError
|
|
1081
|
+
: T extends DailyEventObjectTranscriptionStarted['action']
|
|
1082
|
+
? DailyEventObjectTranscriptionStarted
|
|
1083
|
+
: T extends DailyEventObjectTranscriptionMessage['action']
|
|
1084
|
+
? DailyEventObjectTranscriptionMessage
|
|
1085
|
+
: T extends DailyEventObjectTranscriptionStopped['action']
|
|
1086
|
+
? DailyEventObjectTranscriptionStopped
|
|
1087
|
+
: T extends DailyEventObjectTranscriptionError['action']
|
|
1088
|
+
? DailyEventObjectTranscriptionError
|
|
1052
1089
|
: T extends DailyEventObjectParticipant['action']
|
|
1053
1090
|
? DailyEventObjectParticipant
|
|
1054
1091
|
: T extends DailyEventObjectParticipantLeft['action']
|
|
@@ -1107,6 +1144,8 @@ export type DailyEventObject<T extends DailyEvent = any> =
|
|
|
1107
1144
|
? DailyEventObjectLocalAudioLevel
|
|
1108
1145
|
: T extends DailyEventObjectRemoteParticipantsAudioLevel['action']
|
|
1109
1146
|
? DailyEventObjectRemoteParticipantsAudioLevel
|
|
1147
|
+
: T extends DailyEvent
|
|
1148
|
+
? DailyEventObjectBase
|
|
1110
1149
|
: any;
|
|
1111
1150
|
|
|
1112
1151
|
export type DailyNativeInCallAudioMode = 'video' | 'voice';
|
|
@@ -1120,6 +1159,15 @@ export interface DailyCallStaticUtils {
|
|
|
1120
1159
|
supportedBrowser(): DailyBrowserInfo;
|
|
1121
1160
|
}
|
|
1122
1161
|
|
|
1162
|
+
export interface DailyScreenShareUpdateOptions {
|
|
1163
|
+
screenVideo: {
|
|
1164
|
+
enabled: boolean;
|
|
1165
|
+
};
|
|
1166
|
+
screenAudio: {
|
|
1167
|
+
enabled: boolean;
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1123
1171
|
export type DailyCameraFacingMode = 'user' | 'environment';
|
|
1124
1172
|
|
|
1125
1173
|
type DailyStreamingParticipantsSortMethod = 'active';
|
|
@@ -1334,6 +1382,7 @@ export type DailyStartDialoutOptions =
|
|
|
1334
1382
|
| DailyStartDialoutPhoneOptions;
|
|
1335
1383
|
|
|
1336
1384
|
export interface DailyCall {
|
|
1385
|
+
callClientId: string;
|
|
1337
1386
|
join(properties?: DailyCallOptions): Promise<DailyParticipantsObject | void>;
|
|
1338
1387
|
leave(): Promise<void>;
|
|
1339
1388
|
destroy(): Promise<void>;
|
|
@@ -1364,6 +1413,9 @@ export interface DailyCall {
|
|
|
1364
1413
|
localVideo(): boolean;
|
|
1365
1414
|
setLocalAudio(enabled: boolean): DailyCall;
|
|
1366
1415
|
setLocalVideo(enabled: boolean): DailyCall;
|
|
1416
|
+
localScreenAudio(): boolean;
|
|
1417
|
+
localScreenVideo(): boolean;
|
|
1418
|
+
updateScreenShare(options?: DailyScreenShareUpdateOptions): void;
|
|
1367
1419
|
getReceiveSettings(
|
|
1368
1420
|
id: string,
|
|
1369
1421
|
options?: { showInheritedValues: boolean }
|