ue-softphone-sdk-beta 4.0.17 → 4.0.19

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 CHANGED
@@ -6,3 +6,4 @@
6
6
  * @Description:
7
7
  -->
8
8
  极简互联电话条sdk
9
+ > 4.0.12 针对safari 浏览器获取麦克风权限的适配
@@ -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;