@cometchat/calls-sdk-javascript 4.0.10 → 4.0.11
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/pack/index.js +1 -1
- package/pack/index.js.LICENSE.txt +1 -0
- package/pack/src/Helper.d.ts +5 -5
- package/pack/src/api/APIHandler.d.ts +39 -39
- package/pack/src/api/endpoints.d.ts +7 -7
- package/pack/src/api/helper.d.ts +69 -69
- package/pack/src/api/index.d.ts +2 -2
- package/pack/src/constants/CallConstants.d.ts +217 -217
- package/pack/src/constants/index.d.ts +1 -1
- package/pack/src/defaultCallsettings.d.ts +2 -2
- package/pack/src/index.d.ts +7 -7
- package/pack/src/models/CallGroup.d.ts +14 -14
- package/pack/src/models/CallLog.d.ts +276 -276
- package/pack/src/models/CallSettings.d.ts +382 -382
- package/pack/src/models/CallUser.d.ts +14 -14
- package/pack/src/models/CallsAppSettings.d.ts +41 -41
- package/pack/src/models/CometChatCallLogs.d.ts +189 -189
- package/pack/src/models/CometChatCalls.d.ts +180 -180
- package/pack/src/models/CometChatCallsException.d.ts +8 -8
- package/pack/src/models/ErrorModel.d.ts +12 -12
- package/pack/src/models/Listener.d.ts +86 -86
- package/pack/src/models/ListnerHandler.d.ts +10 -10
- package/pack/src/models/Participant.d.ts +184 -184
- package/pack/src/models/PresenterSettings.d.ts +265 -265
- package/pack/src/models/RTCUser.d.ts +18 -18
- package/pack/src/models/Recording.d.ts +86 -86
- package/pack/src/models/index.d.ts +10 -10
- package/pack/src/types/ICallSettings.d.ts +61 -61
- package/pack/src/types/ICallsAppSettings.d.ts +6 -6
- package/pack/src/types/RTCUser.d.ts +6 -6
- package/pack/src/types/callEvents.d.ts +88 -88
- package/pack/src/types/common.d.ts +14 -14
- package/pack/src/types/index.d.ts +2 -2
- package/pack/src/util/parseJwt.d.ts +1 -1
- package/pack/src/util/verifyCallSettings.d.ts +4 -4
- package/package.json +2 -2
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
import { CallSettings, CallSettingsBuilder, MainVideoContainerSetting } from "./CallSettings";
|
|
2
|
-
import { CallAppSettings, CallAppSettingsBuilder } from "./CallsAppSettings";
|
|
3
|
-
import { OngoingCallListener } from "./Listener";
|
|
4
|
-
import { CallConstants } from "../constants";
|
|
5
|
-
import { PresenterSettings, PresenterSettingsBuilder } from "./PresenterSettings";
|
|
6
|
-
import { ListenerHandlers } from "./ListnerHandler";
|
|
7
|
-
import { CallLog } from './CallLog';
|
|
8
|
-
import { CallLogRequestBuilder } from './CometChatCallLogs';
|
|
9
|
-
import { CallUser } from "./CallUser";
|
|
10
|
-
import { CallGroup } from "./CallGroup";
|
|
11
|
-
import { Participant } from './Participant';
|
|
12
|
-
import { Recording } from './Recording';
|
|
13
|
-
export declare class CometChatCalls {
|
|
14
|
-
private static appSettings;
|
|
15
|
-
private static inProgress;
|
|
16
|
-
private static callEventListener;
|
|
17
|
-
private static debounceDeviceChange;
|
|
18
|
-
private static deviceList;
|
|
19
|
-
static CALL_MODE: {
|
|
20
|
-
readonly DEFAULT: "DEFAULT";
|
|
21
|
-
readonly SPOTLIGHT: "SPOTLIGHT";
|
|
22
|
-
readonly GRID: "TILE";
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Alias to CometChatCalls.CALL_MODE
|
|
26
|
-
*/
|
|
27
|
-
static MODE: {
|
|
28
|
-
readonly DEFAULT: "DEFAULT";
|
|
29
|
-
readonly SPOTLIGHT: "SPOTLIGHT";
|
|
30
|
-
readonly GRID: "TILE";
|
|
31
|
-
};
|
|
32
|
-
static addCallEventListener: typeof ListenerHandlers.addCallEventListener;
|
|
33
|
-
static removeCallEventListener: typeof ListenerHandlers.removeCallEventListener;
|
|
34
|
-
static OngoingCallListener: typeof OngoingCallListener;
|
|
35
|
-
static CallSettingsBuilder: typeof CallSettingsBuilder;
|
|
36
|
-
static CallSettings: typeof CallSettings;
|
|
37
|
-
static PresenterSettingsBuilder: typeof PresenterSettingsBuilder;
|
|
38
|
-
static PresenterSettings: typeof PresenterSettings;
|
|
39
|
-
static CallAppSettingsBuilder: typeof CallAppSettingsBuilder;
|
|
40
|
-
static CallAppSettings: typeof CallAppSettings;
|
|
41
|
-
static MainVideoContainerSetting: typeof MainVideoContainerSetting;
|
|
42
|
-
static CallLogRequestBuilder: typeof CallLogRequestBuilder;
|
|
43
|
-
static CallLog: typeof CallLog;
|
|
44
|
-
static CallUser: typeof CallUser;
|
|
45
|
-
static CallGroup: typeof CallGroup;
|
|
46
|
-
static Participant: typeof Participant;
|
|
47
|
-
static Recording: typeof Recording;
|
|
48
|
-
private static isPresenterMode;
|
|
49
|
-
static joinPresentation(callToken: string, presenterSettings: PresenterSettings, htmlElement: HTMLElement): Promise<void>;
|
|
50
|
-
static startSession(callToken: string, callSettings: CallSettings, htmlElement: HTMLElement): Promise<void>;
|
|
51
|
-
private static startSessionCore;
|
|
52
|
-
private static startTheSession;
|
|
53
|
-
static generateToken(sessionID: string, authToken: string): Promise<{
|
|
54
|
-
token: string;
|
|
55
|
-
}>;
|
|
56
|
-
static init(appSettings: CallAppSettings): Promise<void>;
|
|
57
|
-
private static getRef;
|
|
58
|
-
/**
|
|
59
|
-
* Method to pause/unpause video stream.
|
|
60
|
-
* @param {boolean} pauseVideo Defaults to true
|
|
61
|
-
* @returns {void}
|
|
62
|
-
*/
|
|
63
|
-
static pauseVideo(pauseVideo?: boolean): void;
|
|
64
|
-
/**
|
|
65
|
-
* Method to resume video stream. Alias to resumeVideo.
|
|
66
|
-
* @returns {void}
|
|
67
|
-
*/
|
|
68
|
-
static unPauseVideo(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Method to resume video stream.
|
|
71
|
-
* @returns {void}
|
|
72
|
-
*/
|
|
73
|
-
static resumeVideo(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Method to set mode.
|
|
76
|
-
* @param mode
|
|
77
|
-
* @returns {void}
|
|
78
|
-
*/
|
|
79
|
-
static setMode(mode: (typeof CallConstants.MODE)[keyof typeof CallConstants.MODE]): void;
|
|
80
|
-
/**
|
|
81
|
-
* Method to mute/unmute audio stream.
|
|
82
|
-
* @param {boolean} muteAudio Defaults to true
|
|
83
|
-
* @returns {void}
|
|
84
|
-
*/
|
|
85
|
-
static muteAudio(muteAudio?: boolean): void;
|
|
86
|
-
/**
|
|
87
|
-
* Method to unmute audio stream.
|
|
88
|
-
* @returns {void}
|
|
89
|
-
*/
|
|
90
|
-
static unMuteAudio(): void;
|
|
91
|
-
/**
|
|
92
|
-
* Method to start screen share.
|
|
93
|
-
* @returns {void}
|
|
94
|
-
*/
|
|
95
|
-
static startScreenShare(): void;
|
|
96
|
-
/**
|
|
97
|
-
* Method to stop screen share.
|
|
98
|
-
* @returns {void}
|
|
99
|
-
*/
|
|
100
|
-
static stopScreenShare(): void;
|
|
101
|
-
static endSession(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Method to start call recording.
|
|
104
|
-
* @returns {void}
|
|
105
|
-
*/
|
|
106
|
-
static startRecording(): void;
|
|
107
|
-
/**
|
|
108
|
-
* Method to stop call recording.
|
|
109
|
-
* @returns {void}
|
|
110
|
-
*/
|
|
111
|
-
static stopRecording(): void;
|
|
112
|
-
/**
|
|
113
|
-
* Method to switch an audio call to video call.
|
|
114
|
-
* @returns {void}
|
|
115
|
-
*/
|
|
116
|
-
static switchToVideoCall(): void;
|
|
117
|
-
/**
|
|
118
|
-
* Method to open the virtual background settings.
|
|
119
|
-
* @returns {void}
|
|
120
|
-
*/
|
|
121
|
-
static openVirtualBackground(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Method to close the virtual background settings.
|
|
124
|
-
* @returns {void}
|
|
125
|
-
*/
|
|
126
|
-
static closeVirtualBackground(): void;
|
|
127
|
-
/**
|
|
128
|
-
* Method to set the background blur. This method takes number as input which decides the blur level of the background.
|
|
129
|
-
* @param {number} blurLevel The blur level of the background
|
|
130
|
-
* @returns {void}
|
|
131
|
-
*/
|
|
132
|
-
static setBackgroundBlur(blurLevel: number): void;
|
|
133
|
-
/**
|
|
134
|
-
* Method to set the background image. This method takes either a URL or file Object & sets that image as the background.
|
|
135
|
-
* @param image image URL or file Object
|
|
136
|
-
* @returns {void}
|
|
137
|
-
*/
|
|
138
|
-
static setBackgroundImage(image: string | Blob | Object): void;
|
|
139
|
-
/**
|
|
140
|
-
* Method to get all the available audio input devices.
|
|
141
|
-
* @returns {MediaDeviceInfo[]}
|
|
142
|
-
*/
|
|
143
|
-
static getAudioInputDevices(): MediaDeviceInfo[];
|
|
144
|
-
/**
|
|
145
|
-
* Method to get all the available audio output devices.
|
|
146
|
-
* @returns {MediaDeviceInfo[]}
|
|
147
|
-
*/
|
|
148
|
-
static getAudioOutputDevices(): MediaDeviceInfo[];
|
|
149
|
-
/**
|
|
150
|
-
* Method to get all the available video input devices.
|
|
151
|
-
* @returns {MediaDeviceInfo[]}
|
|
152
|
-
*/
|
|
153
|
-
static getVideoInputDevices(): MediaDeviceInfo[];
|
|
154
|
-
/**
|
|
155
|
-
* Method to change the audio input device.
|
|
156
|
-
* @param {string} deviceId
|
|
157
|
-
* @returns {void}
|
|
158
|
-
*/
|
|
159
|
-
static setAudioInputDevice(deviceId: string): void;
|
|
160
|
-
/**
|
|
161
|
-
* Method to change the audio output device.
|
|
162
|
-
* @param {string} deviceId
|
|
163
|
-
* @returns {void}
|
|
164
|
-
*/
|
|
165
|
-
static setAudioOutputDevice(deviceId: string): void;
|
|
166
|
-
/**
|
|
167
|
-
* Method to change the video input device.
|
|
168
|
-
* @param {string} deviceId
|
|
169
|
-
* @returns {void}
|
|
170
|
-
*/
|
|
171
|
-
static setVideoInputDevice(deviceId: string): void;
|
|
172
|
-
/**
|
|
173
|
-
* Retrieves call details for a given session ID and auth token.
|
|
174
|
-
* @param sessionID - The session ID of the call.
|
|
175
|
-
* @param authToken - The authentication token required to make the API call.
|
|
176
|
-
* @returns A Promise that resolves to a CallLog object containing the call details.
|
|
177
|
-
* @throws {CometChatCallsException} If there is an error retrieving the call details.
|
|
178
|
-
*/
|
|
179
|
-
static getCallDetails(sessionID: string, authToken: string): Promise<Array<CallLog>>;
|
|
180
|
-
}
|
|
1
|
+
import { CallSettings, CallSettingsBuilder, MainVideoContainerSetting } from "./CallSettings";
|
|
2
|
+
import { CallAppSettings, CallAppSettingsBuilder } from "./CallsAppSettings";
|
|
3
|
+
import { OngoingCallListener } from "./Listener";
|
|
4
|
+
import { CallConstants } from "../constants";
|
|
5
|
+
import { PresenterSettings, PresenterSettingsBuilder } from "./PresenterSettings";
|
|
6
|
+
import { ListenerHandlers } from "./ListnerHandler";
|
|
7
|
+
import { CallLog } from './CallLog';
|
|
8
|
+
import { CallLogRequestBuilder } from './CometChatCallLogs';
|
|
9
|
+
import { CallUser } from "./CallUser";
|
|
10
|
+
import { CallGroup } from "./CallGroup";
|
|
11
|
+
import { Participant } from './Participant';
|
|
12
|
+
import { Recording } from './Recording';
|
|
13
|
+
export declare class CometChatCalls {
|
|
14
|
+
private static appSettings;
|
|
15
|
+
private static inProgress;
|
|
16
|
+
private static callEventListener;
|
|
17
|
+
private static debounceDeviceChange;
|
|
18
|
+
private static deviceList;
|
|
19
|
+
static CALL_MODE: {
|
|
20
|
+
readonly DEFAULT: "DEFAULT";
|
|
21
|
+
readonly SPOTLIGHT: "SPOTLIGHT";
|
|
22
|
+
readonly GRID: "TILE";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Alias to CometChatCalls.CALL_MODE
|
|
26
|
+
*/
|
|
27
|
+
static MODE: {
|
|
28
|
+
readonly DEFAULT: "DEFAULT";
|
|
29
|
+
readonly SPOTLIGHT: "SPOTLIGHT";
|
|
30
|
+
readonly GRID: "TILE";
|
|
31
|
+
};
|
|
32
|
+
static addCallEventListener: typeof ListenerHandlers.addCallEventListener;
|
|
33
|
+
static removeCallEventListener: typeof ListenerHandlers.removeCallEventListener;
|
|
34
|
+
static OngoingCallListener: typeof OngoingCallListener;
|
|
35
|
+
static CallSettingsBuilder: typeof CallSettingsBuilder;
|
|
36
|
+
static CallSettings: typeof CallSettings;
|
|
37
|
+
static PresenterSettingsBuilder: typeof PresenterSettingsBuilder;
|
|
38
|
+
static PresenterSettings: typeof PresenterSettings;
|
|
39
|
+
static CallAppSettingsBuilder: typeof CallAppSettingsBuilder;
|
|
40
|
+
static CallAppSettings: typeof CallAppSettings;
|
|
41
|
+
static MainVideoContainerSetting: typeof MainVideoContainerSetting;
|
|
42
|
+
static CallLogRequestBuilder: typeof CallLogRequestBuilder;
|
|
43
|
+
static CallLog: typeof CallLog;
|
|
44
|
+
static CallUser: typeof CallUser;
|
|
45
|
+
static CallGroup: typeof CallGroup;
|
|
46
|
+
static Participant: typeof Participant;
|
|
47
|
+
static Recording: typeof Recording;
|
|
48
|
+
private static isPresenterMode;
|
|
49
|
+
static joinPresentation(callToken: string, presenterSettings: PresenterSettings, htmlElement: HTMLElement): Promise<void>;
|
|
50
|
+
static startSession(callToken: string, callSettings: CallSettings, htmlElement: HTMLElement): Promise<void>;
|
|
51
|
+
private static startSessionCore;
|
|
52
|
+
private static startTheSession;
|
|
53
|
+
static generateToken(sessionID: string, authToken: string): Promise<{
|
|
54
|
+
token: string;
|
|
55
|
+
}>;
|
|
56
|
+
static init(appSettings: CallAppSettings): Promise<void>;
|
|
57
|
+
private static getRef;
|
|
58
|
+
/**
|
|
59
|
+
* Method to pause/unpause video stream.
|
|
60
|
+
* @param {boolean} pauseVideo Defaults to true
|
|
61
|
+
* @returns {void}
|
|
62
|
+
*/
|
|
63
|
+
static pauseVideo(pauseVideo?: boolean): void;
|
|
64
|
+
/**
|
|
65
|
+
* Method to resume video stream. Alias to resumeVideo.
|
|
66
|
+
* @returns {void}
|
|
67
|
+
*/
|
|
68
|
+
static unPauseVideo(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Method to resume video stream.
|
|
71
|
+
* @returns {void}
|
|
72
|
+
*/
|
|
73
|
+
static resumeVideo(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Method to set mode.
|
|
76
|
+
* @param mode
|
|
77
|
+
* @returns {void}
|
|
78
|
+
*/
|
|
79
|
+
static setMode(mode: (typeof CallConstants.MODE)[keyof typeof CallConstants.MODE]): void;
|
|
80
|
+
/**
|
|
81
|
+
* Method to mute/unmute audio stream.
|
|
82
|
+
* @param {boolean} muteAudio Defaults to true
|
|
83
|
+
* @returns {void}
|
|
84
|
+
*/
|
|
85
|
+
static muteAudio(muteAudio?: boolean): void;
|
|
86
|
+
/**
|
|
87
|
+
* Method to unmute audio stream.
|
|
88
|
+
* @returns {void}
|
|
89
|
+
*/
|
|
90
|
+
static unMuteAudio(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Method to start screen share.
|
|
93
|
+
* @returns {void}
|
|
94
|
+
*/
|
|
95
|
+
static startScreenShare(): void;
|
|
96
|
+
/**
|
|
97
|
+
* Method to stop screen share.
|
|
98
|
+
* @returns {void}
|
|
99
|
+
*/
|
|
100
|
+
static stopScreenShare(): void;
|
|
101
|
+
static endSession(): void;
|
|
102
|
+
/**
|
|
103
|
+
* Method to start call recording.
|
|
104
|
+
* @returns {void}
|
|
105
|
+
*/
|
|
106
|
+
static startRecording(): void;
|
|
107
|
+
/**
|
|
108
|
+
* Method to stop call recording.
|
|
109
|
+
* @returns {void}
|
|
110
|
+
*/
|
|
111
|
+
static stopRecording(): void;
|
|
112
|
+
/**
|
|
113
|
+
* Method to switch an audio call to video call.
|
|
114
|
+
* @returns {void}
|
|
115
|
+
*/
|
|
116
|
+
static switchToVideoCall(): void;
|
|
117
|
+
/**
|
|
118
|
+
* Method to open the virtual background settings.
|
|
119
|
+
* @returns {void}
|
|
120
|
+
*/
|
|
121
|
+
static openVirtualBackground(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Method to close the virtual background settings.
|
|
124
|
+
* @returns {void}
|
|
125
|
+
*/
|
|
126
|
+
static closeVirtualBackground(): void;
|
|
127
|
+
/**
|
|
128
|
+
* Method to set the background blur. This method takes number as input which decides the blur level of the background.
|
|
129
|
+
* @param {number} blurLevel The blur level of the background
|
|
130
|
+
* @returns {void}
|
|
131
|
+
*/
|
|
132
|
+
static setBackgroundBlur(blurLevel: number): void;
|
|
133
|
+
/**
|
|
134
|
+
* Method to set the background image. This method takes either a URL or file Object & sets that image as the background.
|
|
135
|
+
* @param image image URL or file Object
|
|
136
|
+
* @returns {void}
|
|
137
|
+
*/
|
|
138
|
+
static setBackgroundImage(image: string | Blob | Object): void;
|
|
139
|
+
/**
|
|
140
|
+
* Method to get all the available audio input devices.
|
|
141
|
+
* @returns {MediaDeviceInfo[]}
|
|
142
|
+
*/
|
|
143
|
+
static getAudioInputDevices(): MediaDeviceInfo[];
|
|
144
|
+
/**
|
|
145
|
+
* Method to get all the available audio output devices.
|
|
146
|
+
* @returns {MediaDeviceInfo[]}
|
|
147
|
+
*/
|
|
148
|
+
static getAudioOutputDevices(): MediaDeviceInfo[];
|
|
149
|
+
/**
|
|
150
|
+
* Method to get all the available video input devices.
|
|
151
|
+
* @returns {MediaDeviceInfo[]}
|
|
152
|
+
*/
|
|
153
|
+
static getVideoInputDevices(): MediaDeviceInfo[];
|
|
154
|
+
/**
|
|
155
|
+
* Method to change the audio input device.
|
|
156
|
+
* @param {string} deviceId
|
|
157
|
+
* @returns {void}
|
|
158
|
+
*/
|
|
159
|
+
static setAudioInputDevice(deviceId: string): void;
|
|
160
|
+
/**
|
|
161
|
+
* Method to change the audio output device.
|
|
162
|
+
* @param {string} deviceId
|
|
163
|
+
* @returns {void}
|
|
164
|
+
*/
|
|
165
|
+
static setAudioOutputDevice(deviceId: string): void;
|
|
166
|
+
/**
|
|
167
|
+
* Method to change the video input device.
|
|
168
|
+
* @param {string} deviceId
|
|
169
|
+
* @returns {void}
|
|
170
|
+
*/
|
|
171
|
+
static setVideoInputDevice(deviceId: string): void;
|
|
172
|
+
/**
|
|
173
|
+
* Retrieves call details for a given session ID and auth token.
|
|
174
|
+
* @param sessionID - The session ID of the call.
|
|
175
|
+
* @param authToken - The authentication token required to make the API call.
|
|
176
|
+
* @returns A Promise that resolves to a CallLog object containing the call details.
|
|
177
|
+
* @throws {CometChatCallsException} If there is an error retrieving the call details.
|
|
178
|
+
*/
|
|
179
|
+
static getCallDetails(sessionID: string, authToken: string): Promise<Array<CallLog>>;
|
|
180
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ErrorModel } from "./ErrorModel";
|
|
2
|
-
export declare class CometChatCallsException {
|
|
3
|
-
code?: ErrorModel["code"];
|
|
4
|
-
name?: ErrorModel["name"];
|
|
5
|
-
message?: ErrorModel["message"];
|
|
6
|
-
details?: ErrorModel["details"];
|
|
7
|
-
constructor(errorModel: ErrorModel);
|
|
8
|
-
}
|
|
1
|
+
import { ErrorModel } from "./ErrorModel";
|
|
2
|
+
export declare class CometChatCallsException {
|
|
3
|
+
code?: ErrorModel["code"];
|
|
4
|
+
name?: ErrorModel["name"];
|
|
5
|
+
message?: ErrorModel["message"];
|
|
6
|
+
details?: ErrorModel["details"];
|
|
7
|
+
constructor(errorModel: ErrorModel);
|
|
8
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface ErrorModel
|
|
6
|
-
*/
|
|
7
|
-
export interface ErrorModel {
|
|
8
|
-
code?: string | number;
|
|
9
|
-
name?: string;
|
|
10
|
-
message?: string;
|
|
11
|
-
details?: string;
|
|
12
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @interface ErrorModel
|
|
6
|
+
*/
|
|
7
|
+
export interface ErrorModel {
|
|
8
|
+
code?: string | number;
|
|
9
|
+
name?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
details?: string;
|
|
12
|
+
}
|
|
@@ -1,86 +1,86 @@
|
|
|
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["onUserJoined"]>) => void;
|
|
6
|
-
onUserListUpdated: (userList: Partial<ICallEventsData["onUserListUpdated"]>) => void;
|
|
7
|
-
onMediaDeviceListUpdated: (devices: Partial<ICallEventsData["onMediaDeviceListUpdated"]>) => void;
|
|
8
|
-
onRecordingStarted: (event: Partial<ICallEventsData["onRecordingStarted"]>) => void;
|
|
9
|
-
onRecordingStopped: (event: Partial<ICallEventsData["onRecordingStopped"]>) => void;
|
|
10
|
-
onScreenShareStarted: () => void;
|
|
11
|
-
onScreenShareStopped: () => void;
|
|
12
|
-
onUserMuted: (event: Partial<ICallEventsData["onUserMuted"]>) => void;
|
|
13
|
-
onUserUnMuted: (event: Partial<ICallEventsData["onUserUnMuted"]>) => void;
|
|
14
|
-
onCallSwitchedToVideo: (event: Partial<ICallEventsData["onCallSwitchedToVideo"]>) => void;
|
|
15
|
-
onCallEnded: () => void;
|
|
16
|
-
onCallEndButtonPressed: () => void;
|
|
17
|
-
onError: (error: CometChatCallsException) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare class OngoingCallListener {
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
onYouLeft?: Function;
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
|
-
onYouJoined?: Function;
|
|
28
|
-
/**
|
|
29
|
-
* This event is triggered when a user joins the call.
|
|
30
|
-
*/
|
|
31
|
-
onUserJoined?: IOngoingCallListener["onUserJoined"];
|
|
32
|
-
/**
|
|
33
|
-
* This event is triggered when a user leaves the call.
|
|
34
|
-
*/
|
|
35
|
-
onUserLeft?: IOngoingCallListener["onUserLeft"];
|
|
36
|
-
/**
|
|
37
|
-
* This event is triggered when the participant list of the call changes.
|
|
38
|
-
*/
|
|
39
|
-
onUserListUpdated?: IOngoingCallListener["onUserListUpdated"];
|
|
40
|
-
/**
|
|
41
|
-
* This event is triggered when the media device list changes.
|
|
42
|
-
*/
|
|
43
|
-
onMediaDeviceListUpdated?: IOngoingCallListener["onMediaDeviceListUpdated"];
|
|
44
|
-
/**
|
|
45
|
-
* This event is triggered when someone starts recording the call.
|
|
46
|
-
*/
|
|
47
|
-
onRecordingStarted?: IOngoingCallListener["onRecordingStarted"];
|
|
48
|
-
/**
|
|
49
|
-
* This event is triggered when someone stops recording the call.
|
|
50
|
-
*/
|
|
51
|
-
onRecordingStopped?: IOngoingCallListener["onRecordingStopped"];
|
|
52
|
-
/**
|
|
53
|
-
* This event is triggered when someone starts sharing their screen in the call.
|
|
54
|
-
*/
|
|
55
|
-
onScreenShareStarted?: IOngoingCallListener["onScreenShareStarted"];
|
|
56
|
-
/**
|
|
57
|
-
* This event is triggered when someone stops sharing their screen in the call.
|
|
58
|
-
*/
|
|
59
|
-
onScreenShareStopped?: IOngoingCallListener["onScreenShareStopped"];
|
|
60
|
-
/**
|
|
61
|
-
* This event is triggered when a user is muted.
|
|
62
|
-
*/
|
|
63
|
-
onUserMuted?: IOngoingCallListener["onUserMuted"];
|
|
64
|
-
/**
|
|
65
|
-
* This event is triggered when a user is unmuted.
|
|
66
|
-
*/
|
|
67
|
-
onUserUnMuted?: IOngoingCallListener["onUserUnMuted"];
|
|
68
|
-
/**
|
|
69
|
-
* This event is triggered when an audio call is switched to a video call.
|
|
70
|
-
*/
|
|
71
|
-
onCallSwitchedToVideo?: IOngoingCallListener["onCallSwitchedToVideo"];
|
|
72
|
-
/**
|
|
73
|
-
* This event is triggered when the call is ended.
|
|
74
|
-
*/
|
|
75
|
-
onCallEnded?: IOngoingCallListener["onCallEnded"];
|
|
76
|
-
/**
|
|
77
|
-
* This event is triggered when an error occurs.
|
|
78
|
-
*/
|
|
79
|
-
onError?: IOngoingCallListener["onError"];
|
|
80
|
-
/**
|
|
81
|
-
* This event is triggered when user presses end call button.
|
|
82
|
-
*/
|
|
83
|
-
onCallEndButtonPressed?: IOngoingCallListener["onCallEndButtonPressed"];
|
|
84
|
-
constructor(eventObj: Partial<IOngoingCallListener>);
|
|
85
|
-
}
|
|
86
|
-
export {};
|
|
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["onUserJoined"]>) => void;
|
|
6
|
+
onUserListUpdated: (userList: Partial<ICallEventsData["onUserListUpdated"]>) => void;
|
|
7
|
+
onMediaDeviceListUpdated: (devices: Partial<ICallEventsData["onMediaDeviceListUpdated"]>) => void;
|
|
8
|
+
onRecordingStarted: (event: Partial<ICallEventsData["onRecordingStarted"]>) => void;
|
|
9
|
+
onRecordingStopped: (event: Partial<ICallEventsData["onRecordingStopped"]>) => void;
|
|
10
|
+
onScreenShareStarted: () => void;
|
|
11
|
+
onScreenShareStopped: () => void;
|
|
12
|
+
onUserMuted: (event: Partial<ICallEventsData["onUserMuted"]>) => void;
|
|
13
|
+
onUserUnMuted: (event: Partial<ICallEventsData["onUserUnMuted"]>) => void;
|
|
14
|
+
onCallSwitchedToVideo: (event: Partial<ICallEventsData["onCallSwitchedToVideo"]>) => void;
|
|
15
|
+
onCallEnded: () => void;
|
|
16
|
+
onCallEndButtonPressed: () => void;
|
|
17
|
+
onError: (error: CometChatCallsException) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare class OngoingCallListener {
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
onYouLeft?: Function;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
onYouJoined?: Function;
|
|
28
|
+
/**
|
|
29
|
+
* This event is triggered when a user joins the call.
|
|
30
|
+
*/
|
|
31
|
+
onUserJoined?: IOngoingCallListener["onUserJoined"];
|
|
32
|
+
/**
|
|
33
|
+
* This event is triggered when a user leaves the call.
|
|
34
|
+
*/
|
|
35
|
+
onUserLeft?: IOngoingCallListener["onUserLeft"];
|
|
36
|
+
/**
|
|
37
|
+
* This event is triggered when the participant list of the call changes.
|
|
38
|
+
*/
|
|
39
|
+
onUserListUpdated?: IOngoingCallListener["onUserListUpdated"];
|
|
40
|
+
/**
|
|
41
|
+
* This event is triggered when the media device list changes.
|
|
42
|
+
*/
|
|
43
|
+
onMediaDeviceListUpdated?: IOngoingCallListener["onMediaDeviceListUpdated"];
|
|
44
|
+
/**
|
|
45
|
+
* This event is triggered when someone starts recording the call.
|
|
46
|
+
*/
|
|
47
|
+
onRecordingStarted?: IOngoingCallListener["onRecordingStarted"];
|
|
48
|
+
/**
|
|
49
|
+
* This event is triggered when someone stops recording the call.
|
|
50
|
+
*/
|
|
51
|
+
onRecordingStopped?: IOngoingCallListener["onRecordingStopped"];
|
|
52
|
+
/**
|
|
53
|
+
* This event is triggered when someone starts sharing their screen in the call.
|
|
54
|
+
*/
|
|
55
|
+
onScreenShareStarted?: IOngoingCallListener["onScreenShareStarted"];
|
|
56
|
+
/**
|
|
57
|
+
* This event is triggered when someone stops sharing their screen in the call.
|
|
58
|
+
*/
|
|
59
|
+
onScreenShareStopped?: IOngoingCallListener["onScreenShareStopped"];
|
|
60
|
+
/**
|
|
61
|
+
* This event is triggered when a user is muted.
|
|
62
|
+
*/
|
|
63
|
+
onUserMuted?: IOngoingCallListener["onUserMuted"];
|
|
64
|
+
/**
|
|
65
|
+
* This event is triggered when a user is unmuted.
|
|
66
|
+
*/
|
|
67
|
+
onUserUnMuted?: IOngoingCallListener["onUserUnMuted"];
|
|
68
|
+
/**
|
|
69
|
+
* This event is triggered when an audio call is switched to a video call.
|
|
70
|
+
*/
|
|
71
|
+
onCallSwitchedToVideo?: IOngoingCallListener["onCallSwitchedToVideo"];
|
|
72
|
+
/**
|
|
73
|
+
* This event is triggered when the call is ended.
|
|
74
|
+
*/
|
|
75
|
+
onCallEnded?: IOngoingCallListener["onCallEnded"];
|
|
76
|
+
/**
|
|
77
|
+
* This event is triggered when an error occurs.
|
|
78
|
+
*/
|
|
79
|
+
onError?: IOngoingCallListener["onError"];
|
|
80
|
+
/**
|
|
81
|
+
* This event is triggered when user presses end call button.
|
|
82
|
+
*/
|
|
83
|
+
onCallEndButtonPressed?: IOngoingCallListener["onCallEndButtonPressed"];
|
|
84
|
+
constructor(eventObj: Partial<IOngoingCallListener>);
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OngoingCallListener } from "./Listener";
|
|
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
|
+
import { OngoingCallListener } from "./Listener";
|
|
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 {};
|