@vonage/client-sdk 1.1.3-alpha.1 → 1.1.3-alpha.3

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;
@@ -612,6 +615,9 @@ export declare namespace vonage {
612
615
  dtmf(callId: string, legId: string, digits: string): void;
613
616
  callHangup(callId: string, callQuality: vonage.RTCQualityJS, reason: vonage.HangupReasonJS): void;
614
617
  legStatusUpdate(callId: string, legId: string, status: vonage.LegStatusJS): void;
618
+ callMediaReconnecting(callId: string): void;
619
+ callMediaReconnection(callId: string): void;
620
+ callMediaDisconnect(callId: string, reason: vonage.CallDisconnectReasonJS): void;
615
621
  reconnecting(): void;
616
622
  reconnection(): void;
617
623
  sessionError(reason: vonage.SessionErrorReasonJS): void;
@@ -648,6 +654,20 @@ export declare namespace vonage {
648
654
  getStatus(status: any/* com.vonage.clientcore.core.api.LegStatus */): vonage.LegStatusJS;
649
655
  };
650
656
  }
657
+ abstract class CallDisconnectReasonJS {
658
+ private constructor();
659
+ static get networkChange(): vonage.CallDisconnectReasonJS & {
660
+ get name(): "networkChange";
661
+ get ordinal(): 0;
662
+ };
663
+ static values(): Array<vonage.CallDisconnectReasonJS>;
664
+ static valueOf(value: string): vonage.CallDisconnectReasonJS;
665
+ get name(): "networkChange";
666
+ get ordinal(): 0;
667
+ static get Companion(): {
668
+ getReason(reason: any/* com.vonage.clientcore.core.api.CallDisconnectReason */): vonage.CallDisconnectReasonJS;
669
+ };
670
+ }
651
671
  abstract class HangupReasonJS {
652
672
  private constructor();
653
673
  static get REMOTE_HANGUP(): vonage.HangupReasonJS & {
@@ -744,6 +764,7 @@ export declare namespace vonage {
744
764
  interface MediaClientDelegateJS {
745
765
  onRtcStats(rtcStats: vonage.RTCStatsJS): void;
746
766
  onConnectionChange(id: string, status: string): void;
767
+ onNetworkChange(legId: string, status: string): void;
747
768
  }
748
769
  }
749
770
  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
+ }