ue-softphone-sdk 4.0.11 → 4.0.13
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 +2 -0
- package/dist/lib/types/index.d.ts +19 -0
- package/dist/lib/ue-soft-phone.min.js +1 -1
- package/dist/types/index.d.ts +19 -0
- package/dist/ue-softphone-sdk.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,10 @@ interface InitOptions {
|
|
|
20
20
|
server?: string;
|
|
21
21
|
audioInfo?: AudioInfo;
|
|
22
22
|
isOpenNetwork?: boolean;
|
|
23
|
+
volume?: {
|
|
24
|
+
open: boolean;
|
|
25
|
+
interval: number;
|
|
26
|
+
};
|
|
23
27
|
pushHangupStatistics?: boolean;
|
|
24
28
|
pushCallinRingStatistics?: boolean;
|
|
25
29
|
isOpenCallQueue?: boolean;
|
|
@@ -31,6 +35,12 @@ interface OnCallEventParams {
|
|
|
31
35
|
error?: Function;
|
|
32
36
|
event?: Function;
|
|
33
37
|
}
|
|
38
|
+
interface OnCallVolumeParams {
|
|
39
|
+
success?: Function;
|
|
40
|
+
message?: Function;
|
|
41
|
+
error?: Function;
|
|
42
|
+
event?: Function;
|
|
43
|
+
}
|
|
34
44
|
interface DialoutParams {
|
|
35
45
|
agentNumber?: String;
|
|
36
46
|
accountId: String;
|
|
@@ -163,6 +173,15 @@ export default class ueSoftphone {
|
|
|
163
173
|
private attachNetworkCallbacks;
|
|
164
174
|
private initnNetworkMonitoring;
|
|
165
175
|
listenCallNetork: (callbacks: OnCallEventParams) => void;
|
|
176
|
+
private volumeCallbacks;
|
|
177
|
+
private audioContext;
|
|
178
|
+
private analyser;
|
|
179
|
+
private dataArray;
|
|
180
|
+
private stream;
|
|
181
|
+
private getMicrophoneVolume;
|
|
182
|
+
private initAudioDetection;
|
|
183
|
+
private startVolumeDetection;
|
|
184
|
+
listenCallVolume: (callbacks: OnCallVolumeParams) => void;
|
|
166
185
|
private initAgentQueue;
|
|
167
186
|
private initQueue;
|
|
168
187
|
static createQueueMonitorEventHandle(callbacks?: any): void;
|