@cometchat/calls-sdk-react-native 4.4.1 → 5.0.0-beta.1
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 +85 -19
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +13 -12
- package/android/src/main/AndroidManifest.xml +15 -6
- package/android/src/main/java/com/callingv5/AudioDeviceHandlerConnectionService.java +185 -0
- package/android/src/main/java/com/callingv5/AudioDeviceHandlerGeneric.java +254 -0
- package/android/src/main/java/com/{CometChatCalls → callingv5}/AudioModeModule.java +93 -56
- package/android/src/main/java/com/callingv5/ConnectionService.java +451 -0
- package/android/src/main/java/com/callingv5/KeepAwakeModule.java +53 -0
- package/android/src/main/java/com/callingv5/MyAppPackage.java +35 -0
- package/android/src/main/java/com/callingv5/RNConnectionService.java +244 -0
- package/android/src/main/java/com/callingv5/ToastModule.java +29 -0
- package/android/src/main/java/com/callingv5/utils/CometChatLogger.java +88 -0
- package/dist/index.d.mts +3940 -0
- package/dist/index.d.ts +3940 -9
- package/dist/index.js +10990 -127
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +10959 -0
- package/dist/index.mjs.map +1 -0
- package/dist/polyfills/RTCPeerConnection.js +19 -0
- package/dist/polyfills/Storage.js +192 -0
- package/dist/polyfills/browser.js +337 -0
- package/dist/polyfills/index.js +1 -0
- package/dist/polyfills/ipv6utils.js +197 -0
- package/dist/polyfills/webrtc.js +11 -0
- package/package.json +18 -110
- package/LICENSE.md +0 -3
- package/android/src/main/java/com/CometChatCalls/AudioDeviceHandlerGeneric.java +0 -213
- package/android/src/main/java/com/CometChatCalls/AudioDeviceHandlerLegacy.java +0 -213
- package/android/src/main/java/com/CometChatCalls/BluetoothHeadsetMonitor.java +0 -187
- package/android/src/main/java/com/CometChatCalls/CallNotificationService.java +0 -93
- package/android/src/main/java/com/CometChatCalls/CallNotificationServiceModule.java +0 -48
- package/android/src/main/java/com/CometChatCalls/CometChatCallsPackage.java +0 -56
- package/android/src/main/java/com/CometChatCalls/CometChatCommonModule.java +0 -48
- package/android/src/main/java/com/CometChatCalls/PictureInPictureModule.java +0 -133
- package/android/src/main/res/drawable-mdpi/callingcomponent_icons_headphones_pluged.png +0 -0
- package/cometchat-calls-sdk-react-native.podspec +0 -21
- package/dist/CometChatErrorConstants.d.ts +0 -124
- package/dist/Constants.d.ts +0 -724
- package/dist/Helper copy.d.ts +0 -1
- package/dist/Helper.d.ts +0 -7
- package/dist/api/APIHandler.d.ts +0 -42
- package/dist/api/endpoints.d.ts +0 -7
- package/dist/api/helper.d.ts +0 -69
- package/dist/api/index.d.ts +0 -2
- package/dist/constants/CallConstants.d.ts +0 -136
- package/dist/constants/index.d.ts +0 -1
- package/dist/defaultCallsettings.d.ts +0 -2
- package/dist/models/CallAppSettings.d.ts +0 -42
- package/dist/models/CallGroup.d.ts +0 -14
- package/dist/models/CallLog.d.ts +0 -276
- package/dist/models/CallLogFilterParams.d.ts +0 -97
- package/dist/models/CallSettings.d.ts +0 -330
- package/dist/models/CallUser.d.ts +0 -14
- package/dist/models/CometChatCallLogs.d.ts +0 -193
- package/dist/models/CometChatCalls.d.ts +0 -110
- package/dist/models/CometChatCallsComponent.d.ts +0 -13
- package/dist/models/CometChatCallsComponentCore.d.ts +0 -18
- package/dist/models/CometChatCallsException.d.ts +0 -7
- package/dist/models/CometChatPresenterComponent.d.ts +0 -13
- package/dist/models/ErrorModel.d.ts +0 -11
- package/dist/models/Listner.d.ts +0 -69
- package/dist/models/ListnerHandler.d.ts +0 -10
- package/dist/models/MessageComponent.d.ts +0 -7
- package/dist/models/Participant.d.ts +0 -184
- package/dist/models/PresenterSettings.d.ts +0 -208
- package/dist/models/RTCUser.d.ts +0 -18
- package/dist/models/Recording.d.ts +0 -86
- package/dist/models/index.d.ts +0 -9
- package/dist/types/ICallAppSettings.d.ts +0 -6
- package/dist/types/ICallSettings.d.ts +0 -61
- package/dist/types/RTCUser.d.ts +0 -6
- package/dist/types/callEvents.d.ts +0 -54
- package/dist/types/common.d.ts +0 -18
- package/dist/types/index.d.ts +0 -2
- package/ios/AudioMode.h +0 -11
- package/ios/AudioMode.m +0 -418
- package/ios/CometChatCommonModule.h +0 -6
- package/ios/CometChatCommonModule.m +0 -29
- package/ios/JitsiAudioSession+Private.h +0 -25
- package/ios/JitsiAudioSession.h +0 -17
- package/ios/JitsiAudioSession.m +0 -34
- package/ios/LogUtils.h +0 -23
- package/ios/react-native-calls2.xcodeproj/project.pbxproj +0 -269
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PresenterSettings } from './PresenterSettings';
|
|
3
|
-
type MyState = {
|
|
4
|
-
errored: boolean;
|
|
5
|
-
};
|
|
6
|
-
export declare class CometChatPresenterComponent extends React.Component<{
|
|
7
|
-
presenterSettings: PresenterSettings;
|
|
8
|
-
callToken: string;
|
|
9
|
-
}, MyState> {
|
|
10
|
-
constructor(props: any);
|
|
11
|
-
render(): JSX.Element;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
package/dist/models/Listner.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ICallEventsData } from '../types/callEvents';
|
|
2
|
-
import { CometChatCallsException } from './CometChatCallsException';
|
|
3
|
-
interface IOngoingCallListener {
|
|
4
|
-
onUserJoined: (user: Partial<ICallEventsData['onUserJoined']>) => void;
|
|
5
|
-
onUserLeft: (user: Partial<ICallEventsData['onUserLeft']>) => void;
|
|
6
|
-
onUserListUpdated: (userList: Partial<ICallEventsData['onUserListUpdated']>) => void;
|
|
7
|
-
onMediaDeviceListUpdated: (devices: Partial<ICallEventsData['onMediaDeviceListUpdated']>) => void;
|
|
8
|
-
onRecordingStarted: (data: Partial<ICallEventsData['onRecordingStarted']>) => void;
|
|
9
|
-
onRecordingStopped: (data: Partial<ICallEventsData['onRecordingStopped']>) => void;
|
|
10
|
-
onUserMuted: (test: Partial<ICallEventsData["onUserMuted"]>) => void;
|
|
11
|
-
onCallSwitchedToVideo: (data: Partial<ICallEventsData['onCallSwitchedToVideo']>) => void;
|
|
12
|
-
onCallEnded: () => void;
|
|
13
|
-
onSessionTimeout: () => void;
|
|
14
|
-
onCallEndButtonPressed: () => void;
|
|
15
|
-
onAudioModesUpdated: (any: any) => void;
|
|
16
|
-
onError: (error: CometChatCallsException) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare class OngoingCallListener {
|
|
19
|
-
/**
|
|
20
|
-
* This event is triggered when a user joins the call.
|
|
21
|
-
*/
|
|
22
|
-
onUserJoined?: IOngoingCallListener["onUserJoined"];
|
|
23
|
-
/**
|
|
24
|
-
* This event is triggered when a user leaves the call.
|
|
25
|
-
*/
|
|
26
|
-
onUserLeft?: IOngoingCallListener["onUserLeft"];
|
|
27
|
-
/**
|
|
28
|
-
* This event is triggered when the participant list of the call changes.
|
|
29
|
-
*/
|
|
30
|
-
onUserListUpdated?: IOngoingCallListener["onUserListUpdated"];
|
|
31
|
-
/**
|
|
32
|
-
* This event is triggered when an audio mode is updated.
|
|
33
|
-
*/
|
|
34
|
-
onAudioModesUpdated?: IOngoingCallListener["onAudioModesUpdated"];
|
|
35
|
-
/**
|
|
36
|
-
* This event is triggered when the call is ended.
|
|
37
|
-
*/
|
|
38
|
-
onCallEnded?: IOngoingCallListener["onCallEnded"];
|
|
39
|
-
/**
|
|
40
|
-
* This event is triggered when the call is ended due to session timeout.
|
|
41
|
-
*/
|
|
42
|
-
onSessionTimeout?: IOngoingCallListener["onSessionTimeout"];
|
|
43
|
-
/**
|
|
44
|
-
* This event is triggered when end call button is pressed.
|
|
45
|
-
*/
|
|
46
|
-
onCallEndButtonPressed?: IOngoingCallListener["onCallEndButtonPressed"];
|
|
47
|
-
/**
|
|
48
|
-
* This event is triggered when an error occurs.
|
|
49
|
-
*/
|
|
50
|
-
onError?: IOngoingCallListener["onError"];
|
|
51
|
-
/**
|
|
52
|
-
* This event is triggered when someone starts recording the call.
|
|
53
|
-
*/
|
|
54
|
-
onRecordingStarted?: IOngoingCallListener["onRecordingStarted"];
|
|
55
|
-
/**
|
|
56
|
-
* This event is triggered when someone stops recording the call.
|
|
57
|
-
*/
|
|
58
|
-
onRecordingStopped?: IOngoingCallListener["onRecordingStopped"];
|
|
59
|
-
/**
|
|
60
|
-
* This event is triggered when a user is muted.
|
|
61
|
-
*/
|
|
62
|
-
onUserMuted?: IOngoingCallListener["onUserMuted"];
|
|
63
|
-
/**
|
|
64
|
-
* This event is triggered when an audio call is switched to a video call.
|
|
65
|
-
*/
|
|
66
|
-
onCallSwitchedToVideo?: IOngoingCallListener["onCallSwitchedToVideo"];
|
|
67
|
-
constructor(eventObj: Partial<IOngoingCallListener>);
|
|
68
|
-
}
|
|
69
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OngoingCallListener } from './Listner';
|
|
2
|
-
interface IMultiOngoingCallListener extends OngoingCallListener {
|
|
3
|
-
_name: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class ListenerHandlers {
|
|
6
|
-
static callHandlers?: IMultiOngoingCallListener[];
|
|
7
|
-
static addCallEventListener(name: string, callListener: OngoingCallListener): void;
|
|
8
|
-
static removeCallEventListener(handler: string): void;
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a participant in a call.
|
|
3
|
-
*/
|
|
4
|
-
export declare class Participant {
|
|
5
|
-
/**
|
|
6
|
-
* The unique identifier of the participant.
|
|
7
|
-
*/
|
|
8
|
-
private uid;
|
|
9
|
-
/**
|
|
10
|
-
* The name of the participant.
|
|
11
|
-
*/
|
|
12
|
-
private name;
|
|
13
|
-
/**
|
|
14
|
-
* The avatar of the participant.
|
|
15
|
-
*/
|
|
16
|
-
private avatar;
|
|
17
|
-
/**
|
|
18
|
-
* The total audio minutes of the participant.
|
|
19
|
-
*/
|
|
20
|
-
private totalAudioMinutes;
|
|
21
|
-
/**
|
|
22
|
-
* The total video minutes of the participant.
|
|
23
|
-
*/
|
|
24
|
-
private totalVideoMinutes;
|
|
25
|
-
/**
|
|
26
|
-
* The total duration in minutes of the participant.
|
|
27
|
-
*/
|
|
28
|
-
private totalDurationInMinutes;
|
|
29
|
-
/**
|
|
30
|
-
* The device ID of the participant.
|
|
31
|
-
*/
|
|
32
|
-
private deviceID;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the participant has joined the call or not.
|
|
35
|
-
*/
|
|
36
|
-
private hasJoined;
|
|
37
|
-
/**
|
|
38
|
-
* The timestamp when the participant joined the call.
|
|
39
|
-
*/
|
|
40
|
-
private joinedAt;
|
|
41
|
-
/**
|
|
42
|
-
* The timestamp when the participant left the call.
|
|
43
|
-
*/
|
|
44
|
-
private leftAt;
|
|
45
|
-
/**
|
|
46
|
-
* The media ID of the participant.
|
|
47
|
-
*/
|
|
48
|
-
private mid;
|
|
49
|
-
/**
|
|
50
|
-
* The state of the participant.
|
|
51
|
-
*/
|
|
52
|
-
private state;
|
|
53
|
-
/**
|
|
54
|
-
* Creates a new instance of Participant.
|
|
55
|
-
* @param object - The object containing the participant data.
|
|
56
|
-
*/
|
|
57
|
-
constructor(object: any);
|
|
58
|
-
/**
|
|
59
|
-
* Gets the unique identifier of the participant.
|
|
60
|
-
* @returns The unique identifier of the participant.
|
|
61
|
-
*/
|
|
62
|
-
getUid(): string;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the unique identifier of the participant.
|
|
65
|
-
* @param value - The unique identifier of the participant.
|
|
66
|
-
*/
|
|
67
|
-
setUid(value: string): void;
|
|
68
|
-
/**
|
|
69
|
-
* Gets the name of the participant.
|
|
70
|
-
* @returns The name of the participant.
|
|
71
|
-
*/
|
|
72
|
-
getName(): string;
|
|
73
|
-
/**
|
|
74
|
-
* Sets the name of the participant.
|
|
75
|
-
* @param value - The name of the participant.
|
|
76
|
-
*/
|
|
77
|
-
setName(value: string): void;
|
|
78
|
-
/**
|
|
79
|
-
* Gets the avatar of the participant.
|
|
80
|
-
* @returns The avatar of the participant.
|
|
81
|
-
*/
|
|
82
|
-
getAvatar(): string;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the avatar of the participant.
|
|
85
|
-
* @param value - The avatar of the participant.
|
|
86
|
-
*/
|
|
87
|
-
setAvatar(value: string): void;
|
|
88
|
-
/**
|
|
89
|
-
* Gets the total audio minutes of the participant.
|
|
90
|
-
* @returns The total audio minutes of the participant.
|
|
91
|
-
*/
|
|
92
|
-
getTotalAudioMinutes(): number;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the total audio minutes of the participant.
|
|
95
|
-
* @param value - The total audio minutes of the participant.
|
|
96
|
-
*/
|
|
97
|
-
setTotalAudioMinutes(value: number): void;
|
|
98
|
-
/**
|
|
99
|
-
* Gets the total video minutes of the participant.
|
|
100
|
-
* @returns The total video minutes of the participant.
|
|
101
|
-
*/
|
|
102
|
-
getTotalVideoMinutes(): number;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the total video minutes of the participant.
|
|
105
|
-
* @param value - The total video minutes of the participant.
|
|
106
|
-
*/
|
|
107
|
-
setTotalVideoMinutes(value: number): void;
|
|
108
|
-
/**
|
|
109
|
-
* Gets the total duration in minutes of the participant.
|
|
110
|
-
* @returns The total duration in minutes of the participant.
|
|
111
|
-
*/
|
|
112
|
-
getTotalDurationInMinutes(): number;
|
|
113
|
-
/**
|
|
114
|
-
* Sets the total duration in minutes of the participant.
|
|
115
|
-
* @param value - The total duration in minutes of the participant.
|
|
116
|
-
*/
|
|
117
|
-
setTotalDurationInMinutes(value: number): void;
|
|
118
|
-
/**
|
|
119
|
-
* Gets the device ID of the participant.
|
|
120
|
-
* @returns The device ID of the participant.
|
|
121
|
-
*/
|
|
122
|
-
getDeviceID(): string;
|
|
123
|
-
/**
|
|
124
|
-
* Sets the device ID of the participant.
|
|
125
|
-
* @param value - The device ID of the participant.
|
|
126
|
-
*/
|
|
127
|
-
setDeviceID(value: string): void;
|
|
128
|
-
/**
|
|
129
|
-
* Gets whether the participant has joined the call or not.
|
|
130
|
-
* @returns Whether the participant has joined the call or not.
|
|
131
|
-
*/
|
|
132
|
-
getHasJoined(): boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Sets whether the participant has joined the call or not.
|
|
135
|
-
* @param value - Whether the participant has joined the call or not.
|
|
136
|
-
*/
|
|
137
|
-
setHasJoined(value: boolean): void;
|
|
138
|
-
/**
|
|
139
|
-
* Gets the timestamp when the participant joined the call.
|
|
140
|
-
* @returns The timestamp when the participant joined the call.
|
|
141
|
-
*/
|
|
142
|
-
getJoinedAt(): number;
|
|
143
|
-
/**
|
|
144
|
-
* Sets the timestamp when the participant joined the call.
|
|
145
|
-
* @param value - The timestamp when the participant joined the call.
|
|
146
|
-
*/
|
|
147
|
-
setJoinedAt(value: number): void;
|
|
148
|
-
/**
|
|
149
|
-
* Gets the timestamp when the participant left the call.
|
|
150
|
-
* @returns The timestamp when the participant left the call.
|
|
151
|
-
*/
|
|
152
|
-
getLeftAt(): number;
|
|
153
|
-
/**
|
|
154
|
-
* Sets the timestamp when the participant left the call.
|
|
155
|
-
* @param value - The timestamp when the participant left the call.
|
|
156
|
-
*/
|
|
157
|
-
setLeftAt(value: number): void;
|
|
158
|
-
/**
|
|
159
|
-
* Gets the media ID of the participant.
|
|
160
|
-
* @returns The media ID of the participant.
|
|
161
|
-
*/
|
|
162
|
-
getMid(): string;
|
|
163
|
-
/**
|
|
164
|
-
* Sets the media ID of the participant.
|
|
165
|
-
* @param value - The media ID of the participant.
|
|
166
|
-
*/
|
|
167
|
-
setMid(value: string): void;
|
|
168
|
-
/**
|
|
169
|
-
* Gets the state of the participant.
|
|
170
|
-
* @returns The state of the participant.
|
|
171
|
-
*/
|
|
172
|
-
getState(): string;
|
|
173
|
-
/**
|
|
174
|
-
* Sets the state of the participant.
|
|
175
|
-
* @param value - The state of the participant.
|
|
176
|
-
*/
|
|
177
|
-
setState(value: string): void;
|
|
178
|
-
/**
|
|
179
|
-
* Creates a new instance of Participant from a JSON object.
|
|
180
|
-
* @param object - The JSON object containing the participant data.
|
|
181
|
-
* @returns A new instance of Participant.
|
|
182
|
-
*/
|
|
183
|
-
static getParticipantFromJson(object: any): Participant;
|
|
184
|
-
}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { OngoingCallListener } from './Listner';
|
|
2
|
-
import { CallConstants } from '../Constants';
|
|
3
|
-
export declare class PresenterSettings {
|
|
4
|
-
static readonly POSITION_TOP_LEFT = "top-left";
|
|
5
|
-
static readonly POSITION_TOP_RIGHT = "top-right";
|
|
6
|
-
static readonly POSITION_BOTTOM_LEFT = "bottom-left";
|
|
7
|
-
static readonly POSITION_BOTTOM_RIGHT = "bottom-right";
|
|
8
|
-
static readonly ASPECT_RATIO_DEFAULT = "default";
|
|
9
|
-
static readonly ASPECT_RATIO_CONTAIN = "contain";
|
|
10
|
-
static readonly ASPECT_RATIO_COVER = "cover";
|
|
11
|
-
static readonly POSITION: {
|
|
12
|
-
readonly TOP_LEFT: "top-left";
|
|
13
|
-
readonly TOP_RIGHT: "top-right";
|
|
14
|
-
readonly BOTTOM_LEFT: "bottom-left";
|
|
15
|
-
readonly BOTTOM_RIGHT: "bottom-right";
|
|
16
|
-
};
|
|
17
|
-
static readonly ASPECT_RATIO: {
|
|
18
|
-
readonly DEFAULT: "default";
|
|
19
|
-
readonly CONTAIN: "contain";
|
|
20
|
-
readonly COVER: "cover";
|
|
21
|
-
};
|
|
22
|
-
private defaultLayout;
|
|
23
|
-
private isAudioOnly;
|
|
24
|
-
private isPresenter;
|
|
25
|
-
private listener;
|
|
26
|
-
private ShowEndCallButton;
|
|
27
|
-
private ShowSwitchCameraButton;
|
|
28
|
-
private ShowMuteAudioButton;
|
|
29
|
-
private ShowPauseVideoButton;
|
|
30
|
-
private ShowAudioModeButton;
|
|
31
|
-
private StartAudioMuted;
|
|
32
|
-
private StartVideoMuted;
|
|
33
|
-
private defaultAudioMode;
|
|
34
|
-
private ShowRecordingButton;
|
|
35
|
-
private idleTimeoutPeriod;
|
|
36
|
-
constructor(builder: PresenterSettingsBuilder);
|
|
37
|
-
isAudioOnlyCall(): boolean;
|
|
38
|
-
getIsPresenter(): boolean;
|
|
39
|
-
isDefaultLayoutEnabled(): boolean;
|
|
40
|
-
getCallEventListener(): OngoingCallListener;
|
|
41
|
-
isEndCallButtonEnabled(): boolean;
|
|
42
|
-
isSwitchCameraButtonEnabled(): boolean;
|
|
43
|
-
isMuteAudioButtonEnabled(): boolean;
|
|
44
|
-
isPauseVideoButtonEnabled(): boolean;
|
|
45
|
-
isAudioModeButtonEnabled(): boolean;
|
|
46
|
-
getStartWithAudioMuted(): boolean;
|
|
47
|
-
getStartWithVideoMuted(): boolean;
|
|
48
|
-
getDefaultAudioMode(): string;
|
|
49
|
-
isRecordingButtonEnabled(): boolean;
|
|
50
|
-
getIdleTimeoutPeriod(): number;
|
|
51
|
-
}
|
|
52
|
-
export declare class PresenterSettingsBuilder {
|
|
53
|
-
/** @private */ defaultLayout: boolean;
|
|
54
|
-
/** @private */ isAudioOnly: boolean;
|
|
55
|
-
/** @private */ isPresenter: boolean;
|
|
56
|
-
/** @private */ listener: OngoingCallListener;
|
|
57
|
-
/** @private */ ShowEndCallButton: boolean;
|
|
58
|
-
/** @private */ ShowSwitchCameraButton: boolean;
|
|
59
|
-
/** @private */ ShowMuteAudioButton: boolean;
|
|
60
|
-
/** @private */ ShowPauseVideoButton: boolean;
|
|
61
|
-
/** @private */ ShowAudioModeButton: boolean;
|
|
62
|
-
/** @private */ StartAudioMuted: boolean;
|
|
63
|
-
/** @private */ StartVideoMuted: boolean;
|
|
64
|
-
/** @private */ defaultAudioMode: typeof CallConstants.AUDIO_MODE[keyof typeof CallConstants.AUDIO_MODE];
|
|
65
|
-
/** @private */ ShowRecordingButton: boolean;
|
|
66
|
-
/** @private */ idleTimeoutPeriod: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @param {boolean} defaultLayout
|
|
70
|
-
* This methods shows/hides the default button layout.
|
|
71
|
-
* If set to true the default button layout will be shown.
|
|
72
|
-
* If set to false the default button layout will be hidden.
|
|
73
|
-
* Default value is true
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
enableDefaultLayout(defaultLayout: boolean): this;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @param {boolean} isAudioOnly
|
|
80
|
-
* This methods sets the type(audio/video) of the call.
|
|
81
|
-
* If set to true, the call will be strictly an audio call.
|
|
82
|
-
* If set to false, the call will be an audio-video call.
|
|
83
|
-
* Default value is false
|
|
84
|
-
* @returns
|
|
85
|
-
*/
|
|
86
|
-
setIsAudioOnlyCall(isAudioOnly: boolean): this;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @param {boolean} isPresenter
|
|
90
|
-
* This methods sets if the user is a presenter.
|
|
91
|
-
* If set to true, the user will be a presenter (allowed to share video/audio).
|
|
92
|
-
* If set to false, the user will not be a presenter (restricted).
|
|
93
|
-
* Default value is false
|
|
94
|
-
* @returns
|
|
95
|
-
*/
|
|
96
|
-
setIsPresenter(isPresenter: boolean): this;
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @param {OngoingCallListener} listener
|
|
100
|
-
* This method sets the call event listener.
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
setCallEventListener(listener: OngoingCallListener): this;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @param {boolean} showEndCallButton
|
|
107
|
-
* This method shows/hides the end call button.
|
|
108
|
-
* If set to true it will display the end call button.
|
|
109
|
-
* If set to false it will hide the end call button.
|
|
110
|
-
* Default value is true.
|
|
111
|
-
* @returns
|
|
112
|
-
*/
|
|
113
|
-
showEndCallButton(showEndCallButton?: boolean): this;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @param {boolean} showSwitchCameraButton
|
|
117
|
-
* This method shows/hides the switch camera button.
|
|
118
|
-
* If set to true it will display the switch camera button.
|
|
119
|
-
* If set to false it will hide the switch camera button.
|
|
120
|
-
* Note: For video call it remains hidden regardless of its value.
|
|
121
|
-
* Default value is true.
|
|
122
|
-
* @returns
|
|
123
|
-
*/
|
|
124
|
-
showSwitchCameraButton(showSwitchCameraButton?: boolean): this;
|
|
125
|
-
/**
|
|
126
|
-
*
|
|
127
|
-
* @param {boolean} showMuteAudioButton
|
|
128
|
-
* This method shows/hides the mute audio button.
|
|
129
|
-
* If set to true it will display the mute audio button.
|
|
130
|
-
* If set to false it will hide the mute audio button.
|
|
131
|
-
* Default value is true.
|
|
132
|
-
* @returns
|
|
133
|
-
*/
|
|
134
|
-
showMuteAudioButton(showMuteAudioButton?: boolean): this;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @param {boolean} showPauseVideoButton
|
|
138
|
-
* This method shows/hides the pause video button.
|
|
139
|
-
* If set to true it will display the pause video button.
|
|
140
|
-
* If set to false it will hide the pause video button.
|
|
141
|
-
* Note: For video call it remains hidden regardless of its value.
|
|
142
|
-
* Default value is true.
|
|
143
|
-
* @returns
|
|
144
|
-
*/
|
|
145
|
-
showPauseVideoButton(showPauseVideoButton?: boolean): this;
|
|
146
|
-
/**
|
|
147
|
-
*
|
|
148
|
-
* @param {boolean} showAudioModeButton
|
|
149
|
-
* This method shows/hides the audio mode button.
|
|
150
|
-
* If set to true it will display the audio mode button.
|
|
151
|
-
* If set to false it will hide the audio mode button.
|
|
152
|
-
* Default value is true.
|
|
153
|
-
* @returns
|
|
154
|
-
*/
|
|
155
|
-
showAudioModeButton(showAudioModeButton?: boolean): this;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @param {boolean} audioMuted
|
|
159
|
-
* This method allows the call to be started with audio muted.
|
|
160
|
-
* If set to true, the call will start with audio muted.
|
|
161
|
-
* Default value is false.
|
|
162
|
-
* @returns
|
|
163
|
-
*/
|
|
164
|
-
startWithAudioMuted(audioMuted?: boolean): this;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @param {boolean} videoMuted
|
|
168
|
-
* This method allows the call to be started with video muted.
|
|
169
|
-
* If set to true, the call will start with video muted.
|
|
170
|
-
* Note: This method has no effect for audio calls.
|
|
171
|
-
* Default value is false.
|
|
172
|
-
* @returns
|
|
173
|
-
*/
|
|
174
|
-
startWithVideoMuted(videoMuted?: boolean): this;
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
* @param {string} audioMode
|
|
178
|
-
* This method will set the default audio mode.
|
|
179
|
-
* @returns
|
|
180
|
-
*/
|
|
181
|
-
setDefaultAudioMode(audioMode: typeof CallConstants.AUDIO_MODE[keyof typeof CallConstants.AUDIO_MODE]): this;
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* @param {boolean} showRecordingButton
|
|
185
|
-
* This method shows/hides the recording button.
|
|
186
|
-
* If set to true it will display the recording button.
|
|
187
|
-
* If set to false it will hide the recording button.
|
|
188
|
-
* Default value is false.
|
|
189
|
-
* @returns
|
|
190
|
-
*/
|
|
191
|
-
showRecordingButton(showRecordingButton?: boolean): this;
|
|
192
|
-
/**
|
|
193
|
-
*
|
|
194
|
-
* @param {number} idleTimeoutPeriod
|
|
195
|
-
* This method sets the idle timeout period for the call.
|
|
196
|
-
* If set and you are the only one in call, the call will end
|
|
197
|
-
* after the idle timeout period, giving you the option to
|
|
198
|
-
* extend the call 60 seconds before the call ends.
|
|
199
|
-
* Default value is 180 seconds.
|
|
200
|
-
* @returns
|
|
201
|
-
*/
|
|
202
|
-
setIdleTimeoutPeriod(idleTimeoutPeriod: number): this;
|
|
203
|
-
/**
|
|
204
|
-
* This method will return an object of the CallSettings class.
|
|
205
|
-
* @returns {PresenterSettings}
|
|
206
|
-
*/
|
|
207
|
-
build(): PresenterSettings;
|
|
208
|
-
}
|
package/dist/models/RTCUser.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare class RTCUser {
|
|
2
|
-
private uid;
|
|
3
|
-
private avatar;
|
|
4
|
-
private name;
|
|
5
|
-
private jwt;
|
|
6
|
-
private resource;
|
|
7
|
-
constructor(uid: string);
|
|
8
|
-
setUID(uid: string): void;
|
|
9
|
-
getUID(): string;
|
|
10
|
-
setName(name: string): void;
|
|
11
|
-
getName(): string;
|
|
12
|
-
setAvatar(avatar: string): void;
|
|
13
|
-
getAvatar(): string;
|
|
14
|
-
setJWT(jwt: string): void;
|
|
15
|
-
getJWT(): string;
|
|
16
|
-
setResource(resource: string): void;
|
|
17
|
-
getResource(): string;
|
|
18
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a recording object.
|
|
3
|
-
*/
|
|
4
|
-
export declare class Recording {
|
|
5
|
-
/**
|
|
6
|
-
* The recording ID.
|
|
7
|
-
*/
|
|
8
|
-
private rid;
|
|
9
|
-
/**
|
|
10
|
-
* The URL of the recording.
|
|
11
|
-
*/
|
|
12
|
-
private recording_url;
|
|
13
|
-
/**
|
|
14
|
-
* The start time of the recording.
|
|
15
|
-
*/
|
|
16
|
-
private startTime;
|
|
17
|
-
/**
|
|
18
|
-
* The end time of the recording.
|
|
19
|
-
*/
|
|
20
|
-
private endTime;
|
|
21
|
-
/**
|
|
22
|
-
* The duration of the recording.
|
|
23
|
-
*/
|
|
24
|
-
private duration;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a new instance of the Recording class.
|
|
27
|
-
* @param data - The data to initialize the recording object.
|
|
28
|
-
*/
|
|
29
|
-
constructor(data: any);
|
|
30
|
-
/**
|
|
31
|
-
* Gets the recording ID.
|
|
32
|
-
* @returns The recording ID.
|
|
33
|
-
*/
|
|
34
|
-
getRid(): string;
|
|
35
|
-
/**
|
|
36
|
-
* Sets the recording ID.
|
|
37
|
-
* @param value - The recording ID to set.
|
|
38
|
-
*/
|
|
39
|
-
setRid(value: string): void;
|
|
40
|
-
/**
|
|
41
|
-
* Gets the recording URL.
|
|
42
|
-
* @returns The recording URL.
|
|
43
|
-
*/
|
|
44
|
-
getRecordingURL(): string;
|
|
45
|
-
/**
|
|
46
|
-
* Sets the recording URL.
|
|
47
|
-
* @param value - The recording URL to set.
|
|
48
|
-
*/
|
|
49
|
-
setRecordingURL(value: string): void;
|
|
50
|
-
/**
|
|
51
|
-
* Gets the start time of the recording.
|
|
52
|
-
* @returns The start time of the recording.
|
|
53
|
-
*/
|
|
54
|
-
getStartTime(): number;
|
|
55
|
-
/**
|
|
56
|
-
* Sets the start time of the recording.
|
|
57
|
-
* @param value - The start time of the recording to set.
|
|
58
|
-
*/
|
|
59
|
-
setStartTime(value: number): void;
|
|
60
|
-
/**
|
|
61
|
-
* Gets the end time of the recording.
|
|
62
|
-
* @returns The end time of the recording.
|
|
63
|
-
*/
|
|
64
|
-
getEndTime(): number;
|
|
65
|
-
/**
|
|
66
|
-
* Sets the end time of the recording.
|
|
67
|
-
* @param value - The end time of the recording to set.
|
|
68
|
-
*/
|
|
69
|
-
setEndTime(value: number): void;
|
|
70
|
-
/**
|
|
71
|
-
* Gets the duration of the recording.
|
|
72
|
-
* @returns The duration of the recording.
|
|
73
|
-
*/
|
|
74
|
-
getDuration(): number;
|
|
75
|
-
/**
|
|
76
|
-
* Sets the duration of the recording.
|
|
77
|
-
* @param value - The duration of the recording to set.
|
|
78
|
-
*/
|
|
79
|
-
setDuration(value: number): void;
|
|
80
|
-
/**
|
|
81
|
-
* Creates a new Recording object from the given JSON data.
|
|
82
|
-
* @param data - The JSON data to create the Recording object from.
|
|
83
|
-
* @returns A new Recording object.
|
|
84
|
-
*/
|
|
85
|
-
static getRecordingFromJson(data: any): Recording;
|
|
86
|
-
}
|
package/dist/models/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ListenerHandlers } from "./ListnerHandler";
|
|
2
|
-
export declare const addCallEventListener: typeof ListenerHandlers.addCallEventListener;
|
|
3
|
-
export declare const removeCallEventListener: typeof ListenerHandlers.removeCallEventListener;
|
|
4
|
-
export * from "./CallAppSettings";
|
|
5
|
-
export * from "./CometChatCalls";
|
|
6
|
-
export * from "./ErrorModel";
|
|
7
|
-
export * from "./RTCUser";
|
|
8
|
-
export * from "./CometChatCallLogs";
|
|
9
|
-
export * from "./CallLogFilterParams";
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ColorValue, Position } from "./common";
|
|
2
|
-
export interface ICallSettings {
|
|
3
|
-
screenShareMode?: "default" | "presenter";
|
|
4
|
-
ShowEndCallButton?: boolean;
|
|
5
|
-
ShowRecordingButton?: boolean;
|
|
6
|
-
idleTimeoutPeriod?: number;
|
|
7
|
-
StartRecordingOnCallStart?: boolean;
|
|
8
|
-
ShowMuteAudioButton?: boolean;
|
|
9
|
-
ShowPauseVideoButton?: boolean;
|
|
10
|
-
ShowScreenShareButton?: boolean;
|
|
11
|
-
ShowSwitchToVideoCallButton?: boolean;
|
|
12
|
-
defaultLayout?: boolean;
|
|
13
|
-
isAudioCall?: boolean;
|
|
14
|
-
isAudioOnly?: boolean;
|
|
15
|
-
user: {
|
|
16
|
-
name: string;
|
|
17
|
-
avatar?: string;
|
|
18
|
-
uid: string;
|
|
19
|
-
jwt?: string;
|
|
20
|
-
};
|
|
21
|
-
mode?: "DEFAULT" | "SPOTLIGHT" | "TILE" | "SIDEBAR";
|
|
22
|
-
StartAudioMuted?: boolean;
|
|
23
|
-
StartVideoMuted?: boolean;
|
|
24
|
-
ShowSwitchModeButton?: boolean;
|
|
25
|
-
ShowVirtualBackgroundSetting?: boolean;
|
|
26
|
-
VirtualBackground?: {
|
|
27
|
-
AllowBackgroundBlur?: boolean;
|
|
28
|
-
AllowUserImages?: boolean;
|
|
29
|
-
ShowDefaultImages?: boolean;
|
|
30
|
-
SetImages?: string[];
|
|
31
|
-
EnforceBackgroundBlur?: 0 | 1 | 2;
|
|
32
|
-
EnforceBackgroundImage?: string;
|
|
33
|
-
};
|
|
34
|
-
AvatarMode?: "circle";
|
|
35
|
-
MainVideoContainerSetting?: {
|
|
36
|
-
videoFit?: "contain" | "cover";
|
|
37
|
-
zoomButton?: {
|
|
38
|
-
visible?: boolean;
|
|
39
|
-
visibility?: boolean;
|
|
40
|
-
position?: Position;
|
|
41
|
-
};
|
|
42
|
-
nameLabel?: {
|
|
43
|
-
visible?: boolean;
|
|
44
|
-
visibility?: boolean;
|
|
45
|
-
position?: Position;
|
|
46
|
-
color?: ColorValue;
|
|
47
|
-
};
|
|
48
|
-
network?: {
|
|
49
|
-
visible?: boolean;
|
|
50
|
-
visibility?: boolean;
|
|
51
|
-
position?: Position;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
customCSS?: string;
|
|
55
|
-
analyticsSettings?: {
|
|
56
|
-
ANALYTICS_HOST: string;
|
|
57
|
-
ANALYTICS_VERSION: string;
|
|
58
|
-
ANALYTICS_PING_DISABLED: boolean;
|
|
59
|
-
ANALYTICS_USE_SSL: boolean;
|
|
60
|
-
};
|
|
61
|
-
}
|