sip-connector 14.1.2-1 → 14.1.2-2
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/SipConnector-DGYQOyHy.cjs +1 -0
- package/dist/SipConnector-DTNc5BfW.js +1352 -0
- package/dist/doMock.cjs +1 -1
- package/dist/doMock.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +85 -86
- package/dist/src/SipConnector.d.ts +235 -0
- package/dist/{SipConnectorFacade → src/SipConnectorFacade}/SipConnectorFacade.d.ts +1 -1
- package/package.json +1 -1
- package/dist/SipConnector-CZwqeStw.cjs +0 -1
- package/dist/SipConnector-DfaRIKWv.js +0 -1345
- package/dist/SipConnector.d.ts +0 -315
- package/dist/utils/utils.d.ts +0 -4
- /package/dist/{SipConnectorFacade → src/SipConnectorFacade}/index.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/BaseSession.mock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/RTCPeerConnectionMock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/RTCRtpSenderMock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/RTCSessionMock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/Registrator.mock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/Request.mock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/UA.mock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/WebSocketInterface.mock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/accountNotify.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/channels.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/channelsNotify.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/conferenceParticipantTokenIssuedNotify.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/delayPromise.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/enterRoom.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/index.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/jssip.mock.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/mediaState.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/participantMoveRequests.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/participantNotify.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/remoteCallerData.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/utils.d.ts +0 -0
- /package/dist/{__fixtures__ → src/__fixtures__}/webcastNotify.d.ts +0 -0
- /package/dist/{causes.d.ts → src/causes.d.ts} +0 -0
- /package/dist/{constants.d.ts → src/constants.d.ts} +0 -0
- /package/dist/{doMock.d.ts → src/doMock.d.ts} +0 -0
- /package/dist/{eventNames.d.ts → src/eventNames.d.ts} +0 -0
- /package/dist/{getExtraHeadersRemoteAddress.d.ts → src/getExtraHeadersRemoteAddress.d.ts} +0 -0
- /package/dist/{headers.d.ts → src/headers.d.ts} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{logger.d.ts → src/logger.d.ts} +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/configureDegradationPreference.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/configureEmptyEncodings.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/configureEncodings.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/configureMaxBitrate.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/configureScaleResolutionDownBy.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/hasChangedRTCRtpSendParameters.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/index.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/resolveHasNeedToUpdateItemEncoding.d.ts +0 -0
- /package/dist/{setParametersToSender → src/setParametersToSender}/setParametersToSender.d.ts +0 -0
- /package/dist/{tools → src/tools}/__fixtures__/call.d.ts +0 -0
- /package/dist/{tools → src/tools}/__fixtures__/connectToServer.d.ts +0 -0
- /package/dist/{tools → src/tools}/__fixtures__/hasValidUri.d.ts +0 -0
- /package/dist/{tools → src/tools}/__fixtures__/permissions.d.ts +0 -0
- /package/dist/{tools → src/tools}/__fixtures__/processRequest.d.ts +0 -0
- /package/dist/{tools → src/tools}/__tests-utils__/parseObject.d.ts +0 -0
- /package/dist/{tools → src/tools}/__tests-utils__/resolveParseArray.d.ts +0 -0
- /package/dist/{tools → src/tools}/error/getLinkError.d.ts +0 -0
- /package/dist/{tools → src/tools}/error/getTypeFromError.d.ts +0 -0
- /package/dist/{tools → src/tools}/error/getValuesFromError.d.ts +0 -0
- /package/dist/{tools → src/tools}/error/index.d.ts +0 -0
- /package/dist/{tools → src/tools}/error/stringifyMessage.d.ts +0 -0
- /package/dist/{tools → src/tools}/generateSimulcastEncodings.d.ts +0 -0
- /package/dist/{tools → src/tools}/getExtraHeaders.d.ts +0 -0
- /package/dist/{tools → src/tools}/getUserAgent.d.ts +0 -0
- /package/dist/{tools → src/tools}/hasPurgatory.d.ts +0 -0
- /package/dist/{tools → src/tools}/index.d.ts +0 -0
- /package/dist/{tools → src/tools}/prepareMediaStream.d.ts +0 -0
- /package/dist/{tools → src/tools}/resolveUpdateTransceiver.d.ts +0 -0
- /package/dist/{tools → src/tools}/sendDTMFAccumulated.d.ts +0 -0
- /package/dist/{tools → src/tools}/setVideoTrackContentHints.d.ts +0 -0
- /package/dist/{tools → src/tools}/syncMediaState/index.d.ts +0 -0
- /package/dist/{tools → src/tools}/syncMediaState/resolveOnStartMainCam.d.ts +0 -0
- /package/dist/{tools → src/tools}/syncMediaState/resolveOnStartMic.d.ts +0 -0
- /package/dist/{tools → src/tools}/syncMediaState/resolveOnStopMainCam.d.ts +0 -0
- /package/dist/{tools → src/tools}/syncMediaState/resolveOnStopMic.d.ts +0 -0
- /package/dist/{types.d.ts → src/types.d.ts} +0 -0
- /package/dist/{utils → src/utils}/errors.d.ts +0 -0
- /package/dist/{utils → src/utils}/findSenderByStream.d.ts +0 -0
- /package/dist/{utils → src/utils}/findVideoSender.d.ts +0 -0
- /package/dist/{utils → src/utils}/findVideoTrack.d.ts +0 -0
- /package/dist/{utils → src/utils}/getCodecFromSender.d.ts +0 -0
- /package/dist/{utils → src/utils}/replaceForbiddenSymbolsWithUnderscore.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/balance.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/getMaxBitrateByWidth.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/getMaxBitrateByWidthAndCodec.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/hasAv1Codec.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/hasIncludesString.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/index.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/processSender.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/scaleBitrate.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/scaleBitrateByCodec.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/scaleResolutionAndBitrate.d.ts +0 -0
- /package/dist/{videoSendingBalancer → src/videoSendingBalancer}/setEncodingsToSender.d.ts +0 -0
package/dist/SipConnector.d.ts
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { IncomingInfoEvent, IncomingRTCSessionEvent, IncomingRequest, OutgoingInfoEvent, RTCSession, RegisteredEvent, UA, UAConfigurationParams, URI, UnRegisteredEvent, WebSocketInterface } from '@krivega/jssip';
|
|
2
|
-
import { TEventSession, TEventUA } from './eventNames';
|
|
3
|
-
import { TContentHint, TCustomError, TJsSIP, TOnAddedTransceiver } from './types';
|
|
4
|
-
export declare const hasCanceledCallError: (error: unknown) => boolean;
|
|
5
|
-
export declare const hasCanceledStartPresentationError: (error: unknown) => error is import('node_modules/repeated-calls/dist/utils').TCanceledError<unknown>;
|
|
6
|
-
type TChannels = {
|
|
7
|
-
inputChannels: string;
|
|
8
|
-
outputChannels: string;
|
|
9
|
-
};
|
|
10
|
-
type TMediaState = {
|
|
11
|
-
cam: boolean;
|
|
12
|
-
mic: boolean;
|
|
13
|
-
};
|
|
14
|
-
type TOptionsInfoMediaState = {
|
|
15
|
-
noTerminateWhenError?: boolean;
|
|
16
|
-
};
|
|
17
|
-
declare const CMD_CHANNELS = "channels";
|
|
18
|
-
declare const CMD_WEBCAST_STARTED = "WebcastStarted";
|
|
19
|
-
declare const CMD_ADDED_TO_LIST_MODERATORS = "addedToListModerators";
|
|
20
|
-
declare const CMD_REMOVED_FROM_LIST_MODERATORS = "removedFromListModerators";
|
|
21
|
-
declare const CMD_ACCEPTING_WORD_REQUEST = "ParticipationRequestAccepted";
|
|
22
|
-
declare const CMD_CANCELLING_WORD_REQUEST = "ParticipationRequestRejected";
|
|
23
|
-
declare const CMD_MOVE_REQUEST_TO_STREAM = "ParticipantMovedToWebcast";
|
|
24
|
-
declare const CMD_CONFERENCE_PARTICIPANT_TOKEN_ISSUED = "ConferenceParticipantTokenIssued";
|
|
25
|
-
type TAddedToListModeratorsInfoNotify = {
|
|
26
|
-
cmd: typeof CMD_ADDED_TO_LIST_MODERATORS;
|
|
27
|
-
conference: string;
|
|
28
|
-
};
|
|
29
|
-
type TRemovedFromListModeratorsInfoNotify = {
|
|
30
|
-
cmd: typeof CMD_REMOVED_FROM_LIST_MODERATORS;
|
|
31
|
-
conference: string;
|
|
32
|
-
};
|
|
33
|
-
type TAcceptingWordRequestInfoNotify = {
|
|
34
|
-
cmd: typeof CMD_ACCEPTING_WORD_REQUEST;
|
|
35
|
-
body: {
|
|
36
|
-
conference: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
type TCancellingWordRequestInfoNotify = {
|
|
40
|
-
cmd: typeof CMD_CANCELLING_WORD_REQUEST;
|
|
41
|
-
body: {
|
|
42
|
-
conference: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
type TMoveRequestToStreamInfoNotify = {
|
|
46
|
-
cmd: typeof CMD_MOVE_REQUEST_TO_STREAM;
|
|
47
|
-
body: {
|
|
48
|
-
conference: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
type TConferenceParticipantTokenIssued = {
|
|
52
|
-
cmd: typeof CMD_CONFERENCE_PARTICIPANT_TOKEN_ISSUED;
|
|
53
|
-
body: {
|
|
54
|
-
conference: string;
|
|
55
|
-
participant: string;
|
|
56
|
-
jwt: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
type TWebcastInfoNotify = {
|
|
60
|
-
cmd: typeof CMD_WEBCAST_STARTED;
|
|
61
|
-
body: {
|
|
62
|
-
conference: string;
|
|
63
|
-
type: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
type TChannelsInfoNotify = {
|
|
67
|
-
cmd: typeof CMD_CHANNELS;
|
|
68
|
-
input: string;
|
|
69
|
-
output: string;
|
|
70
|
-
};
|
|
71
|
-
type TInfoNotify = Omit<TAddedToListModeratorsInfoNotify | TChannelsInfoNotify | TRemovedFromListModeratorsInfoNotify, 'cmd'> & {
|
|
72
|
-
cmd: string;
|
|
73
|
-
};
|
|
74
|
-
type TOptionsExtraHeaders = {
|
|
75
|
-
extraHeaders?: string[];
|
|
76
|
-
};
|
|
77
|
-
type TOntrack = (track: RTCTrackEvent) => void;
|
|
78
|
-
type TParametersConnection = TOptionsExtraHeaders & {
|
|
79
|
-
displayName?: string;
|
|
80
|
-
user?: string;
|
|
81
|
-
password?: string;
|
|
82
|
-
register?: boolean;
|
|
83
|
-
sipServerUrl: string;
|
|
84
|
-
sipWebSocketServerURL: string;
|
|
85
|
-
remoteAddress?: string;
|
|
86
|
-
sessionTimers?: boolean;
|
|
87
|
-
registerExpires?: number;
|
|
88
|
-
connectionRecoveryMinInterval?: number;
|
|
89
|
-
connectionRecoveryMaxInterval?: number;
|
|
90
|
-
userAgent?: string;
|
|
91
|
-
};
|
|
92
|
-
type TParametersCheckTelephony = {
|
|
93
|
-
displayName: string;
|
|
94
|
-
sipServerUrl: string;
|
|
95
|
-
sipWebSocketServerURL: string;
|
|
96
|
-
userAgent?: string;
|
|
97
|
-
remoteAddress?: string;
|
|
98
|
-
extraHeaders?: string[];
|
|
99
|
-
};
|
|
100
|
-
type TParametersCreateUa = UAConfigurationParams & {
|
|
101
|
-
remoteAddress?: string;
|
|
102
|
-
extraHeaders?: string[];
|
|
103
|
-
};
|
|
104
|
-
type TConnect = (parameters: TParametersConnection, options?: {
|
|
105
|
-
callLimit?: number;
|
|
106
|
-
}) => Promise<UA>;
|
|
107
|
-
type TInitUa = (parameters: TParametersConnection) => Promise<UA>;
|
|
108
|
-
type TCreateUa = (parameters: TParametersCreateUa) => UA;
|
|
109
|
-
type TStart = () => Promise<UA>;
|
|
110
|
-
type TSet = ({ displayName, password, }: {
|
|
111
|
-
displayName?: string;
|
|
112
|
-
password?: string;
|
|
113
|
-
}) => Promise<boolean>;
|
|
114
|
-
type TParametersAnswerToIncomingCall = {
|
|
115
|
-
mediaStream: MediaStream;
|
|
116
|
-
extraHeaders?: TOptionsExtraHeaders['extraHeaders'];
|
|
117
|
-
ontrack?: TOntrack;
|
|
118
|
-
iceServers?: RTCIceServer[];
|
|
119
|
-
directionVideo?: RTCRtpTransceiverDirection;
|
|
120
|
-
directionAudio?: RTCRtpTransceiverDirection;
|
|
121
|
-
contentHint?: TContentHint;
|
|
122
|
-
sendEncodings?: RTCRtpEncodingParameters[];
|
|
123
|
-
offerToReceiveAudio?: boolean;
|
|
124
|
-
offerToReceiveVideo?: boolean;
|
|
125
|
-
onAddedTransceiver?: TOnAddedTransceiver;
|
|
126
|
-
};
|
|
127
|
-
type TParametersCall = TParametersAnswerToIncomingCall & {
|
|
128
|
-
number: string;
|
|
129
|
-
};
|
|
130
|
-
type TCall = (parameters: TParametersCall) => Promise<RTCPeerConnection>;
|
|
131
|
-
type TDisconnect = () => Promise<void>;
|
|
132
|
-
type TAnswerToIncomingCall = (parameters: TParametersAnswerToIncomingCall) => Promise<RTCPeerConnection>;
|
|
133
|
-
type TSendDTMF = (tone: number | string) => Promise<void>;
|
|
134
|
-
type THangUp = () => Promise<void>;
|
|
135
|
-
export default class SipConnector {
|
|
136
|
-
private _isRegisterConfig;
|
|
137
|
-
private _connectionConfiguration;
|
|
138
|
-
private _remoteStreams;
|
|
139
|
-
private readonly JsSIP;
|
|
140
|
-
private readonly _sessionEvents;
|
|
141
|
-
private readonly _uaEvents;
|
|
142
|
-
private readonly _cancelableConnect;
|
|
143
|
-
private _cancelableConnectWithRepeatedCalls;
|
|
144
|
-
private _cancelableSendPresentationWithRepeatedCalls;
|
|
145
|
-
private readonly _cancelableInitUa;
|
|
146
|
-
private readonly _cancelableDisconnect;
|
|
147
|
-
private readonly _cancelableSet;
|
|
148
|
-
private readonly _cancelableCall;
|
|
149
|
-
private readonly _cancelableAnswer;
|
|
150
|
-
private readonly _cancelableSendDTMF;
|
|
151
|
-
private getSipServerUrl;
|
|
152
|
-
promisePendingStartPresentation?: Promise<MediaStream>;
|
|
153
|
-
promisePendingStopPresentation?: Promise<MediaStream | void>;
|
|
154
|
-
ua?: UA;
|
|
155
|
-
rtcSession?: RTCSession;
|
|
156
|
-
incomingRTCSession?: RTCSession;
|
|
157
|
-
_streamPresentationCurrent?: MediaStream;
|
|
158
|
-
socket?: WebSocketInterface;
|
|
159
|
-
constructor({ JsSIP }: {
|
|
160
|
-
JsSIP: TJsSIP;
|
|
161
|
-
});
|
|
162
|
-
connect: TConnect;
|
|
163
|
-
initUa: TInitUa;
|
|
164
|
-
set: TSet;
|
|
165
|
-
call: TCall;
|
|
166
|
-
disconnect: TDisconnect;
|
|
167
|
-
answerToIncomingCall: TAnswerToIncomingCall;
|
|
168
|
-
sendDTMF: TSendDTMF;
|
|
169
|
-
hangUp: THangUp;
|
|
170
|
-
register(): Promise<RegisteredEvent>;
|
|
171
|
-
unregister(): Promise<UnRegisteredEvent>;
|
|
172
|
-
tryRegister: () => Promise<RegisteredEvent>;
|
|
173
|
-
sendOptions(target: URI | string, body?: string, extraHeaders?: string[]): Promise<void>;
|
|
174
|
-
ping(body?: string, extraHeaders?: string[]): Promise<void>;
|
|
175
|
-
checkTelephony({ userAgent, displayName, sipServerUrl, sipWebSocketServerURL, remoteAddress, extraHeaders, }: TParametersCheckTelephony): Promise<void>;
|
|
176
|
-
replaceMediaStream(mediaStream: MediaStream, options?: {
|
|
177
|
-
deleteExisting?: boolean;
|
|
178
|
-
addMissing?: boolean;
|
|
179
|
-
forceRenegotiation?: boolean;
|
|
180
|
-
contentHint?: TContentHint;
|
|
181
|
-
sendEncodings?: RTCRtpEncodingParameters[];
|
|
182
|
-
onAddedTransceiver?: TOnAddedTransceiver;
|
|
183
|
-
}): Promise<void>;
|
|
184
|
-
declineToIncomingCall: ({ statusCode }?: {
|
|
185
|
-
statusCode?: number | undefined;
|
|
186
|
-
}) => Promise<unknown>;
|
|
187
|
-
busyIncomingCall: () => Promise<unknown>;
|
|
188
|
-
removeIncomingSession: () => void;
|
|
189
|
-
askPermissionToEnableCam(options?: TOptionsInfoMediaState): Promise<void>;
|
|
190
|
-
get isPendingPresentation(): boolean;
|
|
191
|
-
private readonly _connectWithDuplicatedCalls;
|
|
192
|
-
private _sendPresentationWithDuplicatedCalls;
|
|
193
|
-
private hasEqualConnectionConfiguration;
|
|
194
|
-
private createUaConfiguration;
|
|
195
|
-
private _sendPresentation;
|
|
196
|
-
startPresentation(stream: MediaStream, { isNeedReinvite, isP2P, maxBitrate, contentHint, sendEncodings, onAddedTransceiver, }?: {
|
|
197
|
-
isNeedReinvite?: boolean;
|
|
198
|
-
isP2P?: boolean;
|
|
199
|
-
maxBitrate?: number;
|
|
200
|
-
contentHint?: TContentHint;
|
|
201
|
-
sendEncodings?: RTCRtpEncodingParameters[];
|
|
202
|
-
onAddedTransceiver?: TOnAddedTransceiver;
|
|
203
|
-
}, options?: {
|
|
204
|
-
callLimit: number;
|
|
205
|
-
}): Promise<MediaStream>;
|
|
206
|
-
private sendMustStopPresentation;
|
|
207
|
-
stopPresentation({ isP2P, }?: {
|
|
208
|
-
isP2P?: boolean;
|
|
209
|
-
}): Promise<MediaStream | void>;
|
|
210
|
-
updatePresentation(stream: MediaStream, { isP2P, maxBitrate, contentHint, sendEncodings, onAddedTransceiver, }?: {
|
|
211
|
-
isP2P?: boolean;
|
|
212
|
-
maxBitrate?: number;
|
|
213
|
-
contentHint?: TContentHint;
|
|
214
|
-
sendEncodings?: RTCRtpEncodingParameters[];
|
|
215
|
-
onAddedTransceiver?: TOnAddedTransceiver;
|
|
216
|
-
}): Promise<MediaStream | void>;
|
|
217
|
-
_removeStreamPresentationCurrent(): void;
|
|
218
|
-
_resetPresentation(): void;
|
|
219
|
-
_cancelRequestsAndResetPresentation(): void;
|
|
220
|
-
handleNewRTCSession: ({ originator, session: rtcSession }: IncomingRTCSessionEvent) => void;
|
|
221
|
-
on<T = void>(eventName: TEventUA, handler: (data: T) => void): () => void;
|
|
222
|
-
once<T>(eventName: TEventUA, handler: (data: T) => void): () => void;
|
|
223
|
-
onceRace<T>(eventNames: TEventUA[], handler: (data: T, eventName: string) => void): () => void;
|
|
224
|
-
wait<T>(eventName: TEventUA): Promise<T>;
|
|
225
|
-
off<T>(eventName: TEventUA, handler: (data: T) => void): void;
|
|
226
|
-
onSession<T>(eventName: TEventSession, handler: (data: T) => void): () => void;
|
|
227
|
-
onceSession<T>(eventName: TEventSession, handler: (data: T) => void): () => void;
|
|
228
|
-
onceRaceSession<T>(eventNames: TEventSession[], handler: (data: T, eventName: string) => void): () => void;
|
|
229
|
-
waitSession<T>(eventName: TEventSession): Promise<T>;
|
|
230
|
-
offSession<T>(eventName: TEventSession, handler: (data: T) => void): void;
|
|
231
|
-
isConfigured(): boolean;
|
|
232
|
-
getConnectionConfiguration(): {
|
|
233
|
-
sipServerUrl?: string;
|
|
234
|
-
displayName?: string;
|
|
235
|
-
register?: boolean;
|
|
236
|
-
user?: string;
|
|
237
|
-
password?: string;
|
|
238
|
-
number?: string;
|
|
239
|
-
answer?: boolean;
|
|
240
|
-
};
|
|
241
|
-
getRemoteStreams(): MediaStream[] | undefined;
|
|
242
|
-
get connection(): RTCPeerConnection | undefined;
|
|
243
|
-
get remoteCallerData(): {
|
|
244
|
-
displayName: string | undefined;
|
|
245
|
-
host: string | undefined;
|
|
246
|
-
incomingNumber: string | undefined;
|
|
247
|
-
rtcSession: RTCSession | undefined;
|
|
248
|
-
};
|
|
249
|
-
get requested(): boolean;
|
|
250
|
-
get establishedRTCSession(): RTCSession | undefined;
|
|
251
|
-
get isRegistered(): boolean;
|
|
252
|
-
get isRegisterConfig(): boolean;
|
|
253
|
-
get isCallActive(): boolean;
|
|
254
|
-
get isAvailableIncomingCall(): boolean;
|
|
255
|
-
_connect: TConnect;
|
|
256
|
-
_initUa: TInitUa;
|
|
257
|
-
_createUa: TCreateUa;
|
|
258
|
-
_start: TStart;
|
|
259
|
-
_set: TSet;
|
|
260
|
-
_disconnectWithoutCancelRequests: TDisconnect;
|
|
261
|
-
_disconnect: () => Promise<void>;
|
|
262
|
-
_call: TCall;
|
|
263
|
-
_answer: TAnswerToIncomingCall;
|
|
264
|
-
_handleCall: ({ ontrack }: {
|
|
265
|
-
ontrack?: TOntrack;
|
|
266
|
-
}) => Promise<RTCPeerConnection>;
|
|
267
|
-
_restoreSession: () => void;
|
|
268
|
-
_sendDTMF: TSendDTMF;
|
|
269
|
-
_generateStream(videoTrack: MediaStreamTrack, audioTrack?: MediaStreamTrack): MediaStream;
|
|
270
|
-
_generateAudioStream(audioTrack: MediaStreamTrack): MediaStream;
|
|
271
|
-
_generateStreams(remoteTracks: MediaStreamTrack[]): MediaStream[];
|
|
272
|
-
_generateAudioStreams(remoteTracks: MediaStreamTrack[]): MediaStream[];
|
|
273
|
-
_hangUpWithoutCancelRequests: THangUp;
|
|
274
|
-
_cancelRequests(): void;
|
|
275
|
-
_cancelConnectWithRepeatedCalls(): void;
|
|
276
|
-
_cancelSendPresentationWithRepeatedCalls(): void;
|
|
277
|
-
_cancelCallRequests(): void;
|
|
278
|
-
_cancelActionsRequests(): void;
|
|
279
|
-
_handleShareState: (eventName: string) => void;
|
|
280
|
-
_maybeTriggerChannels: (request: IncomingRequest) => void;
|
|
281
|
-
_handleNotify: (header: TInfoNotify) => void;
|
|
282
|
-
_triggerRemovedFromListModeratorsNotify: ({ conference, }: TRemovedFromListModeratorsInfoNotify) => void;
|
|
283
|
-
_triggerAddedToListModeratorsNotify: ({ conference }: TAddedToListModeratorsInfoNotify) => void;
|
|
284
|
-
_triggerWebcastStartedNotify: ({ body: { conference, type } }: TWebcastInfoNotify) => void;
|
|
285
|
-
_triggerWebcastStoppedNotify: ({ body: { conference, type } }: TWebcastInfoNotify) => void;
|
|
286
|
-
_triggerAccountChangedNotify: () => void;
|
|
287
|
-
_triggerAccountDeletedNotify: () => void;
|
|
288
|
-
_triggerConferenceParticipantTokenIssued: ({ body: { conference, participant, jwt }, }: TConferenceParticipantTokenIssued) => void;
|
|
289
|
-
_triggerChannelsNotify: (channelsInfo: TChannelsInfoNotify) => void;
|
|
290
|
-
_triggerParticipationAcceptingWordRequest: ({ body: { conference }, }: TAcceptingWordRequestInfoNotify) => void;
|
|
291
|
-
_triggerParticipationCancellingWordRequest: ({ body: { conference }, }: TCancellingWordRequestInfoNotify) => void;
|
|
292
|
-
_triggerParticipantMoveRequestToStream: ({ body: { conference }, }: TMoveRequestToStreamInfoNotify) => void;
|
|
293
|
-
_triggerEnterRoom: (request: IncomingRequest) => void;
|
|
294
|
-
_triggerShareState: (request: IncomingRequest) => void;
|
|
295
|
-
_maybeTriggerParticipantMoveRequest: (request: IncomingRequest) => void;
|
|
296
|
-
_triggerMainCamControl: (request: IncomingRequest) => void;
|
|
297
|
-
_triggerMicControl: (request: IncomingRequest) => void;
|
|
298
|
-
_triggerUseLicense: (request: IncomingRequest) => void;
|
|
299
|
-
_handleNewInfo: (info: IncomingInfoEvent | OutgoingInfoEvent) => void;
|
|
300
|
-
_handleSipEvent: ({ request }: {
|
|
301
|
-
request: IncomingRequest;
|
|
302
|
-
}) => void;
|
|
303
|
-
_maybeHandleNotify: (request: IncomingRequest) => void;
|
|
304
|
-
waitChannels(): Promise<TChannels>;
|
|
305
|
-
waitSyncMediaState(): Promise<{
|
|
306
|
-
isSyncForced: boolean;
|
|
307
|
-
}>;
|
|
308
|
-
sendChannels({ inputChannels, outputChannels }: TChannels): Promise<void>;
|
|
309
|
-
sendMediaState({ cam, mic }: TMediaState, options?: TOptionsInfoMediaState): Promise<void>;
|
|
310
|
-
_sendRefusalToTurnOn(type: 'cam' | 'mic', options?: TOptionsInfoMediaState): Promise<void>;
|
|
311
|
-
sendRefusalToTurnOnMic(options?: TOptionsInfoMediaState): Promise<void>;
|
|
312
|
-
sendRefusalToTurnOnCam(options?: TOptionsInfoMediaState): Promise<void>;
|
|
313
|
-
_handleEnded: (error: TCustomError) => void;
|
|
314
|
-
}
|
|
315
|
-
export {};
|
package/dist/utils/utils.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function resolveSipUrl(serverUrl: string): (string: string) => string;
|
|
2
|
-
export declare const parseDisplayName: (displayName: string) => string;
|
|
3
|
-
export declare const generateUserId: () => number;
|
|
4
|
-
export declare const hasVideoTracks: (remoteTracks: MediaStreamTrack[]) => boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{setParametersToSender → src/setParametersToSender}/configureEmptyEncodings.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{setParametersToSender → src/setParametersToSender}/setParametersToSender.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{videoSendingBalancer → src/videoSendingBalancer}/getMaxBitrateByWidthAndCodec.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{videoSendingBalancer → src/videoSendingBalancer}/scaleResolutionAndBitrate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|