@vonage/client-sdk 1.2.0-alpha.10 → 1.2.0-alpha.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.
@@ -9,6 +9,9 @@ export declare namespace vonage {
9
9
  dtmf(callId: string, legId: string, digits: string): void;
10
10
  callHangup(callId: string, callQuality: vonage.RTCQualityJS, reason: vonage.HangupReasonJS): void;
11
11
  legStatusUpdate(callId: string, legId: string, status: vonage.LegStatusJS): void;
12
+ callMediaReconnecting(callId: string): void;
13
+ callMediaReconnection(callId: string): void;
14
+ callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
12
15
  reconnecting(): void;
13
16
  reconnection(): void;
14
17
  sessionError(reason: vonage.SessionErrorReasonJS): void;
@@ -735,6 +738,9 @@ export declare namespace vonage {
735
738
  dtmf(callId: string, legId: string, digits: string): void;
736
739
  callHangup(callId: string, callQuality: vonage.RTCQualityJS, reason: vonage.HangupReasonJS): void;
737
740
  legStatusUpdate(callId: string, legId: string, status: vonage.LegStatusJS): void;
741
+ callMediaReconnecting(callId: string): void;
742
+ callMediaReconnection(callId: string): void;
743
+ callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
738
744
  reconnecting(): void;
739
745
  reconnection(): void;
740
746
  sessionError(reason: vonage.SessionErrorReasonJS): void;
@@ -771,6 +777,20 @@ export declare namespace vonage {
771
777
  getStatus(status: any/* com.vonage.clientcore.core.api.LegStatus */): vonage.LegStatusJS;
772
778
  };
773
779
  }
780
+ abstract class CallDisconnectReasonJS {
781
+ private constructor();
782
+ static get networkChange(): vonage.CallDisconnectReasonJS & {
783
+ get name(): "networkChange";
784
+ get ordinal(): 0;
785
+ };
786
+ static values(): Array<vonage.CallDisconnectReasonJS>;
787
+ static valueOf(value: string): vonage.CallDisconnectReasonJS;
788
+ get name(): "networkChange";
789
+ get ordinal(): 0;
790
+ static get Companion(): {
791
+ getReason(reason: any/* com.vonage.clientcore.core.api.CallDisconnectReason */): vonage.CallDisconnectReasonJS;
792
+ };
793
+ }
774
794
  abstract class HangupReasonJS {
775
795
  private constructor();
776
796
  static get REMOTE_HANGUP(): vonage.HangupReasonJS & {
@@ -867,6 +887,7 @@ export declare namespace vonage {
867
887
  interface MediaClientDelegateJS {
868
888
  onRtcStats(rtcStats: vonage.RTCStatsJS): void;
869
889
  onConnectionChange(id: string, status: string): void;
890
+ onNetworkChange(legId: string, status: string): void;
870
891
  }
871
892
  }
872
893
  export declare namespace vonage {
@@ -5,6 +5,7 @@ declare class MediaClient implements vonage.MediaClientJS {
5
5
  private pcs;
6
6
  private audio;
7
7
  private intervalId;
8
+ private connectivityManager;
8
9
  constructor();
9
10
  enableRtcStatsCollection(interval: number, mediaId: string): void;
10
11
  enableMediaInbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>) => void, offerSDP: string, rtcId: string): Promise<void>;
@@ -0,0 +1,11 @@
1
+ import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
2
+ import vonage from '../utils/vonage';
3
+ export declare class ConnectivityManager {
4
+ private legId;
5
+ private isOnline;
6
+ private delegate;
7
+ handleNetworkChange(): void;
8
+ constructor();
9
+ setLegId(legId: string, delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>): void;
10
+ unsetLegId(): void;
11
+ }