@vonage/client-sdk 1.5.0-beta.0 → 1.5.0-beta.1
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/dist/client/index.cjs +4294 -4038
- package/dist/client/index.mjs +4294 -4038
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +32 -15
- package/dist/lib/MediaClient.d.ts +9 -8
- package/dist/vonageClientSDK.js +4264 -4018
- package/dist/vonageClientSDK.min.js +16 -16
- package/dist/vonageClientSDK.min.mjs +22 -22
- package/dist/vonageClientSDK.mjs +4264 -4018
- package/package.json +1 -1
|
@@ -748,26 +748,43 @@ export declare namespace vonage {
|
|
|
748
748
|
abstract class MediaClientErrorJS {
|
|
749
749
|
protected constructor();
|
|
750
750
|
}
|
|
751
|
-
class
|
|
751
|
+
class PeerConnectionNotFoundJS extends vonage.MediaClientErrorJS {
|
|
752
752
|
constructor(legId: string);
|
|
753
753
|
get legId(): string;
|
|
754
|
-
copy(legId?: string): vonage.
|
|
754
|
+
copy(legId?: string): vonage.PeerConnectionNotFoundJS;
|
|
755
755
|
toString(): string;
|
|
756
756
|
hashCode(): number;
|
|
757
757
|
equals(other: Nullable<any>): boolean;
|
|
758
758
|
}
|
|
759
|
-
class
|
|
759
|
+
class TrackNotFoundJS extends vonage.MediaClientErrorJS {
|
|
760
760
|
constructor(legId: string);
|
|
761
761
|
get legId(): string;
|
|
762
|
-
copy(legId?: string): vonage.
|
|
762
|
+
copy(legId?: string): vonage.TrackNotFoundJS;
|
|
763
763
|
toString(): string;
|
|
764
764
|
hashCode(): number;
|
|
765
765
|
equals(other: Nullable<any>): boolean;
|
|
766
766
|
}
|
|
767
|
-
class
|
|
768
|
-
constructor(legId: string);
|
|
767
|
+
class ProcessAnswerErrorJS extends vonage.MediaClientErrorJS {
|
|
768
|
+
constructor(legId: string, message?: Nullable<string>);
|
|
769
769
|
get legId(): string;
|
|
770
|
-
|
|
770
|
+
get message(): Nullable<string>;
|
|
771
|
+
copy(legId?: string, message?: Nullable<string>): vonage.ProcessAnswerErrorJS;
|
|
772
|
+
toString(): string;
|
|
773
|
+
hashCode(): number;
|
|
774
|
+
equals(other: Nullable<any>): boolean;
|
|
775
|
+
}
|
|
776
|
+
class CreateAnswerErrorJS extends vonage.MediaClientErrorJS {
|
|
777
|
+
constructor(message?: Nullable<string>);
|
|
778
|
+
get message(): Nullable<string>;
|
|
779
|
+
copy(message?: Nullable<string>): vonage.CreateAnswerErrorJS;
|
|
780
|
+
toString(): string;
|
|
781
|
+
hashCode(): number;
|
|
782
|
+
equals(other: Nullable<any>): boolean;
|
|
783
|
+
}
|
|
784
|
+
class CreateOfferErrorJS extends vonage.MediaClientErrorJS {
|
|
785
|
+
constructor(message?: Nullable<string>);
|
|
786
|
+
get message(): Nullable<string>;
|
|
787
|
+
copy(message?: Nullable<string>): vonage.CreateOfferErrorJS;
|
|
771
788
|
toString(): string;
|
|
772
789
|
hashCode(): number;
|
|
773
790
|
equals(other: Nullable<any>): boolean;
|
|
@@ -1135,15 +1152,15 @@ export declare namespace vonage {
|
|
|
1135
1152
|
interface MediaClientJS {
|
|
1136
1153
|
delegate?: Nullable<vonage.MediaClientDelegateJS>;
|
|
1137
1154
|
enableMediaOutbound(closure: (p0: any, p1: Nullable<string>, p2: (p0: string) => void) => void): void;
|
|
1138
|
-
enableMediaInbound(closure: (p0: any, p1: Nullable<string>) => void
|
|
1139
|
-
processAnswer(id: string, sdp: string): void;
|
|
1140
|
-
disableMedia(id: string): void;
|
|
1141
|
-
mute(id: string): void;
|
|
1142
|
-
unmute(id: string): void;
|
|
1155
|
+
enableMediaInbound(rtcId: string, offerSDP: string, closure: (p0: any, p1: Nullable<string>) => void): void;
|
|
1156
|
+
processAnswer(id: string, sdp: string, closure: (p0: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1157
|
+
disableMedia(id: string, closure: (p0: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1158
|
+
mute(id: string, closure: (p0: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1159
|
+
unmute(id: string, closure: (p0: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1143
1160
|
getPeerConnection(id: string): any;
|
|
1144
|
-
enableRtcStatsCollection(interval: any/* kotlin.Number */,
|
|
1145
|
-
enableNoiseSuppression(id: string): void;
|
|
1146
|
-
disableNoiseSuppression(id: string): void;
|
|
1161
|
+
enableRtcStatsCollection(id: string, interval: any/* kotlin.Number */, closure: (p0: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1162
|
+
enableNoiseSuppression(id: string, closure: (p0: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1163
|
+
disableNoiseSuppression(id: string, closure: (p0: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1147
1164
|
}
|
|
1148
1165
|
interface MediaClientDelegateJS {
|
|
1149
1166
|
onRtcStats(rtcStats: vonage.RTCStatsJS, legId: string): void;
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import * as KMPPackage from '../kotlin/clientsdk-clientcore_js';
|
|
2
2
|
import vonage from '../utils/vonage';
|
|
3
3
|
import 'webrtc-adapter';
|
|
4
|
+
type MediaResultClosure = (p0: KMPPackage.Nullable<vonage.MediaClientErrorJS>) => void;
|
|
4
5
|
declare class MediaClient implements vonage.MediaClientJS {
|
|
5
6
|
delegate: KMPPackage.Nullable<vonage.MediaClientDelegateJS>;
|
|
6
7
|
private pcs;
|
|
7
8
|
private audio;
|
|
8
9
|
private intervalId;
|
|
9
10
|
constructor();
|
|
10
|
-
enableRtcStatsCollection(interval: number,
|
|
11
|
-
enableMediaInbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>) => void
|
|
11
|
+
enableRtcStatsCollection(id: string, interval: number, closure: MediaResultClosure): void;
|
|
12
|
+
enableMediaInbound(rtcId: string, offerSDP: string, closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>) => void): Promise<void>;
|
|
12
13
|
enableMediaOutbound(closure: (err: unknown, offerSDP: KMPPackage.Nullable<string>, callback: (legId: string) => void) => void): Promise<void>;
|
|
13
14
|
private getNewPC;
|
|
14
|
-
mute(id: string): Promise<void>;
|
|
15
|
-
unmute(id: string): Promise<void>;
|
|
15
|
+
mute(id: string, closure: MediaResultClosure): Promise<void>;
|
|
16
|
+
unmute(id: string, closure: MediaResultClosure): Promise<void>;
|
|
16
17
|
getPeerConnection(id: string): RTCPeerConnection | undefined;
|
|
17
|
-
processAnswer(id: string, sdp: string): void;
|
|
18
|
-
disableMedia(id: string): void;
|
|
18
|
+
processAnswer(id: string, sdp: string, closure: MediaResultClosure): void;
|
|
19
|
+
disableMedia(id: string, closure: MediaResultClosure): void;
|
|
20
|
+
disableNoiseSuppression(id: string, closure: MediaResultClosure): void;
|
|
21
|
+
enableNoiseSuppression(id: string, closure: MediaResultClosure): void;
|
|
19
22
|
private setMediaTracksEnabled;
|
|
20
|
-
disableNoiseSuppression(id: string): void;
|
|
21
|
-
enableNoiseSuppression(id: string): void;
|
|
22
23
|
}
|
|
23
24
|
export default MediaClient;
|