@wireapp/avs 8.1.18 → 8.1.23
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/avs_core.js +815 -5431
- package/dist/avs_wcall.d.ts +40 -40
- package/dist/avs_wcall.js +323 -183
- package/package.json +2 -2
package/dist/avs_wcall.js
CHANGED
|
@@ -18,38 +18,26 @@
|
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
/* DO NOT edit this file by hand. It is generated by the AVS make
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* system and any changes you make will be lost.
|
|
22
|
+
*/
|
|
23
23
|
var avs_core = require("./avs_core");
|
|
24
24
|
var avs_pc_1 = require("./avs_pc");
|
|
25
|
-
var
|
|
26
|
-
(function (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})(CONV_TYPE = exports.CONV_TYPE || (exports.CONV_TYPE = {}));
|
|
42
|
-
var STATE;
|
|
43
|
-
(function (STATE) {
|
|
44
|
-
STATE[STATE["NONE"] = 0] = "NONE";
|
|
45
|
-
STATE[STATE["OUTGOING"] = 1] = "OUTGOING";
|
|
46
|
-
STATE[STATE["INCOMING"] = 2] = "INCOMING";
|
|
47
|
-
STATE[STATE["ANSWERED"] = 3] = "ANSWERED";
|
|
48
|
-
STATE[STATE["MEDIA_ESTAB"] = 4] = "MEDIA_ESTAB";
|
|
49
|
-
STATE[STATE["TERM_LOCAL"] = 6] = "TERM_LOCAL";
|
|
50
|
-
STATE[STATE["TERM_REMOTE"] = 7] = "TERM_REMOTE";
|
|
51
|
-
STATE[STATE["UNKNOWN"] = 8] = "UNKNOWN";
|
|
52
|
-
})(STATE = exports.STATE || (exports.STATE = {}));
|
|
25
|
+
var ERROR;
|
|
26
|
+
(function (ERROR) {
|
|
27
|
+
ERROR[ERROR["NO_MEMORY"] = 12] = "NO_MEMORY";
|
|
28
|
+
ERROR[ERROR["INVALID"] = 22] = "INVALID";
|
|
29
|
+
ERROR[ERROR["TIMED_OUT"] = 110] = "TIMED_OUT";
|
|
30
|
+
ERROR[ERROR["ALREADY"] = 114] = "ALREADY";
|
|
31
|
+
ERROR[ERROR["UNKNOWN_PROTOCOL"] = 1000] = "UNKNOWN_PROTOCOL";
|
|
32
|
+
})(ERROR = exports.ERROR || (exports.ERROR = {}));
|
|
33
|
+
var QUALITY;
|
|
34
|
+
(function (QUALITY) {
|
|
35
|
+
QUALITY[QUALITY["NORMAL"] = 1] = "NORMAL";
|
|
36
|
+
QUALITY[QUALITY["MEDIUM"] = 2] = "MEDIUM";
|
|
37
|
+
QUALITY[QUALITY["POOR"] = 3] = "POOR";
|
|
38
|
+
QUALITY[QUALITY["NETWORK_PROBLEM"] = 4] = "NETWORK_PROBLEM";
|
|
39
|
+
QUALITY[QUALITY["RECONNECTING"] = 5] = "RECONNECTING";
|
|
40
|
+
})(QUALITY = exports.QUALITY || (exports.QUALITY = {}));
|
|
53
41
|
var REASON;
|
|
54
42
|
(function (REASON) {
|
|
55
43
|
REASON[REASON["NORMAL"] = 0] = "NORMAL";
|
|
@@ -67,6 +55,19 @@ var REASON;
|
|
|
67
55
|
REASON[REASON["NOONE_JOINED"] = 12] = "NOONE_JOINED";
|
|
68
56
|
REASON[REASON["EVERYONE_LEFT"] = 13] = "EVERYONE_LEFT";
|
|
69
57
|
})(REASON = exports.REASON || (exports.REASON = {}));
|
|
58
|
+
var LOG_LEVEL;
|
|
59
|
+
(function (LOG_LEVEL) {
|
|
60
|
+
LOG_LEVEL[LOG_LEVEL["DEBUG"] = 0] = "DEBUG";
|
|
61
|
+
LOG_LEVEL[LOG_LEVEL["INFO"] = 1] = "INFO";
|
|
62
|
+
LOG_LEVEL[LOG_LEVEL["WARN"] = 2] = "WARN";
|
|
63
|
+
LOG_LEVEL[LOG_LEVEL["ERROR"] = 3] = "ERROR";
|
|
64
|
+
})(LOG_LEVEL = exports.LOG_LEVEL || (exports.LOG_LEVEL = {}));
|
|
65
|
+
var AUDIO_STATE;
|
|
66
|
+
(function (AUDIO_STATE) {
|
|
67
|
+
AUDIO_STATE[AUDIO_STATE["CONNECTING"] = 0] = "CONNECTING";
|
|
68
|
+
AUDIO_STATE[AUDIO_STATE["ESTABLISHED"] = 1] = "ESTABLISHED";
|
|
69
|
+
AUDIO_STATE[AUDIO_STATE["NETWORK_PROBLEM"] = 2] = "NETWORK_PROBLEM";
|
|
70
|
+
})(AUDIO_STATE = exports.AUDIO_STATE || (exports.AUDIO_STATE = {}));
|
|
70
71
|
var VIDEO_STATE;
|
|
71
72
|
(function (VIDEO_STATE) {
|
|
72
73
|
VIDEO_STATE[VIDEO_STATE["STOPPED"] = 0] = "STOPPED";
|
|
@@ -80,34 +81,35 @@ var ENV;
|
|
|
80
81
|
ENV[ENV["DEFAULT"] = 0] = "DEFAULT";
|
|
81
82
|
ENV[ENV["FIREFOX"] = 1] = "FIREFOX";
|
|
82
83
|
})(ENV = exports.ENV || (exports.ENV = {}));
|
|
83
|
-
var ERROR;
|
|
84
|
-
(function (ERROR) {
|
|
85
|
-
ERROR[ERROR["NO_MEMORY"] = 12] = "NO_MEMORY";
|
|
86
|
-
ERROR[ERROR["INVALID"] = 22] = "INVALID";
|
|
87
|
-
ERROR[ERROR["TIMED_OUT"] = 110] = "TIMED_OUT";
|
|
88
|
-
ERROR[ERROR["ALREADY"] = 114] = "ALREADY";
|
|
89
|
-
ERROR[ERROR["UNKNOWN_PROTOCOL"] = 1000] = "UNKNOWN_PROTOCOL";
|
|
90
|
-
})(ERROR = exports.ERROR || (exports.ERROR = {}));
|
|
91
84
|
var CALL_TYPE;
|
|
92
85
|
(function (CALL_TYPE) {
|
|
93
86
|
CALL_TYPE[CALL_TYPE["NORMAL"] = 0] = "NORMAL";
|
|
94
87
|
CALL_TYPE[CALL_TYPE["VIDEO"] = 1] = "VIDEO";
|
|
95
88
|
CALL_TYPE[CALL_TYPE["FORCED_AUDIO"] = 2] = "FORCED_AUDIO";
|
|
96
89
|
})(CALL_TYPE = exports.CALL_TYPE || (exports.CALL_TYPE = {}));
|
|
97
|
-
var
|
|
98
|
-
(function (
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
})(
|
|
103
|
-
var
|
|
104
|
-
(function (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
90
|
+
var CONV_TYPE;
|
|
91
|
+
(function (CONV_TYPE) {
|
|
92
|
+
CONV_TYPE[CONV_TYPE["ONEONONE"] = 0] = "ONEONONE";
|
|
93
|
+
CONV_TYPE[CONV_TYPE["GROUP"] = 1] = "GROUP";
|
|
94
|
+
CONV_TYPE[CONV_TYPE["CONFERENCE"] = 2] = "CONFERENCE";
|
|
95
|
+
})(CONV_TYPE = exports.CONV_TYPE || (exports.CONV_TYPE = {}));
|
|
96
|
+
var STATE;
|
|
97
|
+
(function (STATE) {
|
|
98
|
+
STATE[STATE["NONE"] = 0] = "NONE";
|
|
99
|
+
STATE[STATE["OUTGOING"] = 1] = "OUTGOING";
|
|
100
|
+
STATE[STATE["INCOMING"] = 2] = "INCOMING";
|
|
101
|
+
STATE[STATE["ANSWERED"] = 3] = "ANSWERED";
|
|
102
|
+
STATE[STATE["MEDIA_ESTAB"] = 4] = "MEDIA_ESTAB";
|
|
103
|
+
STATE[STATE["TERM_LOCAL"] = 6] = "TERM_LOCAL";
|
|
104
|
+
STATE[STATE["TERM_REMOTE"] = 7] = "TERM_REMOTE";
|
|
105
|
+
STATE[STATE["UNKNOWN"] = 8] = "UNKNOWN";
|
|
106
|
+
})(STATE = exports.STATE || (exports.STATE = {}));
|
|
107
|
+
var VSTREAMS;
|
|
108
|
+
(function (VSTREAMS) {
|
|
109
|
+
VSTREAMS[VSTREAMS["LIST"] = 0] = "LIST";
|
|
110
|
+
})(VSTREAMS = exports.VSTREAMS || (exports.VSTREAMS = {}));
|
|
111
|
+
;
|
|
112
|
+
;
|
|
111
113
|
var instance;
|
|
112
114
|
var logFn;
|
|
113
115
|
var logHandler = function (level, msg, err) {
|
|
@@ -127,10 +129,12 @@ var Wcall = /** @class */ (function () {
|
|
|
127
129
|
Wcall.prototype.init = function (env) {
|
|
128
130
|
avs_pc_1.default.init(this.em_module, logHandler);
|
|
129
131
|
this.em_module.ccall("wcall_setup", "number", [], []);
|
|
130
|
-
return this.em_module.ccall(
|
|
132
|
+
return this.em_module.ccall('wcall_init', 'number', ['number'], [
|
|
133
|
+
env
|
|
134
|
+
]);
|
|
131
135
|
};
|
|
132
136
|
Wcall.prototype.close = function () {
|
|
133
|
-
this.em_module.ccall(
|
|
137
|
+
this.em_module.ccall('wcall_close', 'null', [], []);
|
|
134
138
|
};
|
|
135
139
|
Wcall.prototype.create = function (userid, clientid, readyh, sendh, sfth, incomingh, missedh, answerh, estabh, closeh, metricsh, cfg_reqh, acbrh, vstateh, arg) {
|
|
136
140
|
var _this = this;
|
|
@@ -139,85 +143,81 @@ var Wcall = /** @class */ (function () {
|
|
|
139
143
|
if (readyh) {
|
|
140
144
|
readyh(version, arg);
|
|
141
145
|
}
|
|
142
|
-
},
|
|
146
|
+
}, 'vnn');
|
|
143
147
|
var fn_sendh = this.em_module.addFunction(function (ctx, convid, userid_self, clientid_self, targets, unused, data, len, trans, arg) {
|
|
144
148
|
if (sendh) {
|
|
145
|
-
return sendh(ctx, convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid_self == 0 ? null : _this.em_module.UTF8ToString(userid_self), clientid_self == 0
|
|
146
|
-
? null
|
|
147
|
-
: _this.em_module.UTF8ToString(clientid_self), targets == 0 ? null : _this.em_module.UTF8ToString(targets), unused == 0 ? null : _this.em_module.UTF8ToString(unused), data == 0 ? null : _this.em_module.UTF8ToString(data), len, trans, arg);
|
|
149
|
+
return sendh(ctx, convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid_self == 0 ? null : _this.em_module.UTF8ToString(userid_self), clientid_self == 0 ? null : _this.em_module.UTF8ToString(clientid_self), targets == 0 ? null : _this.em_module.UTF8ToString(targets), unused == 0 ? null : _this.em_module.UTF8ToString(unused), data == 0 ? null : _this.em_module.UTF8ToString(data), len, trans, arg);
|
|
148
150
|
}
|
|
149
151
|
return null;
|
|
150
|
-
},
|
|
152
|
+
}, 'nnssssssnnn');
|
|
151
153
|
var fn_sfth = this.em_module.addFunction(function (ctx, url, data, len, arg) {
|
|
152
154
|
if (sfth) {
|
|
153
155
|
return sfth(ctx, url == 0 ? null : _this.em_module.UTF8ToString(url), data == 0 ? null : _this.em_module.UTF8ToString(data), len, arg);
|
|
154
156
|
}
|
|
155
157
|
return null;
|
|
156
|
-
},
|
|
158
|
+
}, 'nnssnn');
|
|
157
159
|
var fn_incomingh = this.em_module.addFunction(function (convid, msg_time, userid, clientid, video_call, should_ring, conv_type, arg) {
|
|
158
160
|
if (incomingh) {
|
|
159
161
|
incomingh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), msg_time, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), video_call, should_ring, conv_type, arg);
|
|
160
162
|
}
|
|
161
|
-
},
|
|
163
|
+
}, 'vsnssnnnn');
|
|
162
164
|
var fn_missedh = this.em_module.addFunction(function (convid, msg_time, userid, clientid, video_call, arg) {
|
|
163
165
|
if (missedh) {
|
|
164
166
|
missedh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), msg_time, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), video_call, arg);
|
|
165
167
|
}
|
|
166
|
-
},
|
|
168
|
+
}, 'vsnssnn');
|
|
167
169
|
var fn_answerh = this.em_module.addFunction(function (convid, arg) {
|
|
168
170
|
if (answerh) {
|
|
169
171
|
answerh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), arg);
|
|
170
172
|
}
|
|
171
|
-
},
|
|
173
|
+
}, 'vsn');
|
|
172
174
|
var fn_estabh = this.em_module.addFunction(function (convid, userid, clientid, arg) {
|
|
173
175
|
if (estabh) {
|
|
174
176
|
estabh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), arg);
|
|
175
177
|
}
|
|
176
|
-
},
|
|
178
|
+
}, 'vsssn');
|
|
177
179
|
var fn_closeh = this.em_module.addFunction(function (reason, convid, msg_time, userid, clientid, arg) {
|
|
178
180
|
if (closeh) {
|
|
179
181
|
closeh(reason, convid == 0 ? null : _this.em_module.UTF8ToString(convid), msg_time, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), arg);
|
|
180
182
|
}
|
|
181
|
-
},
|
|
183
|
+
}, 'vnsnssn');
|
|
182
184
|
var fn_metricsh = this.em_module.addFunction(function (convid, metrics_json, arg) {
|
|
183
185
|
if (metricsh) {
|
|
184
|
-
metricsh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), metrics_json == 0
|
|
185
|
-
? null
|
|
186
|
-
: _this.em_module.UTF8ToString(metrics_json), arg);
|
|
186
|
+
metricsh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), metrics_json == 0 ? null : _this.em_module.UTF8ToString(metrics_json), arg);
|
|
187
187
|
}
|
|
188
|
-
},
|
|
188
|
+
}, 'vssn');
|
|
189
189
|
var fn_cfg_reqh = this.em_module.addFunction(function (wuser, arg) {
|
|
190
190
|
if (cfg_reqh) {
|
|
191
191
|
return cfg_reqh(wuser, arg);
|
|
192
192
|
}
|
|
193
193
|
return null;
|
|
194
|
-
},
|
|
194
|
+
}, 'nnn');
|
|
195
195
|
var fn_acbrh = this.em_module.addFunction(function (userid, clientid, enabled, arg) {
|
|
196
196
|
if (acbrh) {
|
|
197
197
|
acbrh(userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), enabled, arg);
|
|
198
198
|
}
|
|
199
|
-
},
|
|
199
|
+
}, 'vssnn');
|
|
200
200
|
var fn_vstateh = this.em_module.addFunction(function (convid, userid, clientid, state, arg) {
|
|
201
201
|
if (vstateh) {
|
|
202
202
|
vstateh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), state, arg);
|
|
203
203
|
}
|
|
204
|
-
},
|
|
205
|
-
return this.em_module.ccall(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
204
|
+
}, 'vsssnn');
|
|
205
|
+
return this.em_module.ccall('wcall_create', 'number', [
|
|
206
|
+
'string',
|
|
207
|
+
'string',
|
|
208
|
+
'number',
|
|
209
|
+
'number',
|
|
210
|
+
'number',
|
|
211
|
+
'number',
|
|
212
|
+
'number',
|
|
213
|
+
'number',
|
|
214
|
+
'number',
|
|
215
|
+
'number',
|
|
216
|
+
'number',
|
|
217
|
+
'number',
|
|
218
|
+
'number',
|
|
219
|
+
'number',
|
|
220
|
+
'number'
|
|
221
221
|
], [
|
|
222
222
|
userid,
|
|
223
223
|
clientid,
|
|
@@ -243,87 +243,83 @@ var Wcall = /** @class */ (function () {
|
|
|
243
243
|
if (readyh) {
|
|
244
244
|
readyh(version, arg);
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, 'vnn');
|
|
247
247
|
var fn_sendh = this.em_module.addFunction(function (ctx, convid, userid_self, clientid_self, targets, unused, data, len, trans, arg) {
|
|
248
248
|
if (sendh) {
|
|
249
|
-
return sendh(ctx, convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid_self == 0 ? null : _this.em_module.UTF8ToString(userid_self), clientid_self == 0
|
|
250
|
-
? null
|
|
251
|
-
: _this.em_module.UTF8ToString(clientid_self), targets == 0 ? null : _this.em_module.UTF8ToString(targets), unused == 0 ? null : _this.em_module.UTF8ToString(unused), data == 0 ? null : _this.em_module.UTF8ToString(data), len, trans, arg);
|
|
249
|
+
return sendh(ctx, convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid_self == 0 ? null : _this.em_module.UTF8ToString(userid_self), clientid_self == 0 ? null : _this.em_module.UTF8ToString(clientid_self), targets == 0 ? null : _this.em_module.UTF8ToString(targets), unused == 0 ? null : _this.em_module.UTF8ToString(unused), data == 0 ? null : _this.em_module.UTF8ToString(data), len, trans, arg);
|
|
252
250
|
}
|
|
253
251
|
return null;
|
|
254
|
-
},
|
|
252
|
+
}, 'nnssssssnnn');
|
|
255
253
|
var fn_sfth = this.em_module.addFunction(function (ctx, url, data, len, arg) {
|
|
256
254
|
if (sfth) {
|
|
257
255
|
return sfth(ctx, url == 0 ? null : _this.em_module.UTF8ToString(url), data == 0 ? null : _this.em_module.UTF8ToString(data), len, arg);
|
|
258
256
|
}
|
|
259
257
|
return null;
|
|
260
|
-
},
|
|
258
|
+
}, 'nnssnn');
|
|
261
259
|
var fn_incomingh = this.em_module.addFunction(function (convid, msg_time, userid, clientid, video_call, should_ring, conv_type, arg) {
|
|
262
260
|
if (incomingh) {
|
|
263
261
|
incomingh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), msg_time, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), video_call, should_ring, conv_type, arg);
|
|
264
262
|
}
|
|
265
|
-
},
|
|
263
|
+
}, 'vsnssnnnn');
|
|
266
264
|
var fn_missedh = this.em_module.addFunction(function (convid, msg_time, userid, clientid, video_call, arg) {
|
|
267
265
|
if (missedh) {
|
|
268
266
|
missedh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), msg_time, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), video_call, arg);
|
|
269
267
|
}
|
|
270
|
-
},
|
|
268
|
+
}, 'vsnssnn');
|
|
271
269
|
var fn_answerh = this.em_module.addFunction(function (convid, arg) {
|
|
272
270
|
if (answerh) {
|
|
273
271
|
answerh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), arg);
|
|
274
272
|
}
|
|
275
|
-
},
|
|
273
|
+
}, 'vsn');
|
|
276
274
|
var fn_estabh = this.em_module.addFunction(function (convid, userid, clientid, arg) {
|
|
277
275
|
if (estabh) {
|
|
278
276
|
estabh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), arg);
|
|
279
277
|
}
|
|
280
|
-
},
|
|
278
|
+
}, 'vsssn');
|
|
281
279
|
var fn_closeh = this.em_module.addFunction(function (reason, convid, msg_time, userid, clientid, arg) {
|
|
282
280
|
if (closeh) {
|
|
283
281
|
closeh(reason, convid == 0 ? null : _this.em_module.UTF8ToString(convid), msg_time, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), arg);
|
|
284
282
|
}
|
|
285
|
-
},
|
|
283
|
+
}, 'vnsnssn');
|
|
286
284
|
var fn_metricsh = this.em_module.addFunction(function (convid, metrics_json, arg) {
|
|
287
285
|
if (metricsh) {
|
|
288
|
-
metricsh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), metrics_json == 0
|
|
289
|
-
? null
|
|
290
|
-
: _this.em_module.UTF8ToString(metrics_json), arg);
|
|
286
|
+
metricsh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), metrics_json == 0 ? null : _this.em_module.UTF8ToString(metrics_json), arg);
|
|
291
287
|
}
|
|
292
|
-
},
|
|
288
|
+
}, 'vssn');
|
|
293
289
|
var fn_cfg_reqh = this.em_module.addFunction(function (wuser, arg) {
|
|
294
290
|
if (cfg_reqh) {
|
|
295
291
|
return cfg_reqh(wuser, arg);
|
|
296
292
|
}
|
|
297
293
|
return null;
|
|
298
|
-
},
|
|
294
|
+
}, 'nnn');
|
|
299
295
|
var fn_acbrh = this.em_module.addFunction(function (userid, clientid, enabled, arg) {
|
|
300
296
|
if (acbrh) {
|
|
301
297
|
acbrh(userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), enabled, arg);
|
|
302
298
|
}
|
|
303
|
-
},
|
|
299
|
+
}, 'vssnn');
|
|
304
300
|
var fn_vstateh = this.em_module.addFunction(function (convid, userid, clientid, state, arg) {
|
|
305
301
|
if (vstateh) {
|
|
306
302
|
vstateh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), state, arg);
|
|
307
303
|
}
|
|
308
|
-
},
|
|
309
|
-
return this.em_module.ccall(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
304
|
+
}, 'vsssnn');
|
|
305
|
+
return this.em_module.ccall('wcall_create_ex', 'number', [
|
|
306
|
+
'string',
|
|
307
|
+
'string',
|
|
308
|
+
'number',
|
|
309
|
+
'string',
|
|
310
|
+
'number',
|
|
311
|
+
'number',
|
|
312
|
+
'number',
|
|
313
|
+
'number',
|
|
314
|
+
'number',
|
|
315
|
+
'number',
|
|
316
|
+
'number',
|
|
317
|
+
'number',
|
|
318
|
+
'number',
|
|
319
|
+
'number',
|
|
320
|
+
'number',
|
|
321
|
+
'number',
|
|
322
|
+
'number'
|
|
327
323
|
], [
|
|
328
324
|
userid,
|
|
329
325
|
clientid,
|
|
@@ -350,50 +346,115 @@ var Wcall = /** @class */ (function () {
|
|
|
350
346
|
if (shuth) {
|
|
351
347
|
shuth(wuser, arg);
|
|
352
348
|
}
|
|
353
|
-
},
|
|
354
|
-
this.em_module.ccall(
|
|
349
|
+
}, 'vnn');
|
|
350
|
+
this.em_module.ccall('wcall_set_shutdown_handler', 'null', ['number', 'number', 'number'], [
|
|
351
|
+
wuser,
|
|
352
|
+
fn_shuth,
|
|
353
|
+
arg
|
|
354
|
+
]);
|
|
355
355
|
};
|
|
356
356
|
Wcall.prototype.destroy = function (wuser) {
|
|
357
|
-
this.em_module.ccall(
|
|
357
|
+
this.em_module.ccall('wcall_destroy', 'null', ['number'], [
|
|
358
|
+
wuser
|
|
359
|
+
]);
|
|
358
360
|
};
|
|
359
361
|
Wcall.prototype.setTrace = function (wuser, trace) {
|
|
360
|
-
this.em_module.ccall(
|
|
362
|
+
this.em_module.ccall('wcall_set_trace', 'null', ['number', 'number'], [
|
|
363
|
+
wuser,
|
|
364
|
+
trace
|
|
365
|
+
]);
|
|
361
366
|
};
|
|
362
367
|
Wcall.prototype.start = function (wuser, convid, call_type, conv_type, audio_cbr) {
|
|
363
|
-
return this.em_module.ccall(
|
|
368
|
+
return this.em_module.ccall('wcall_start', 'number', [
|
|
369
|
+
'number',
|
|
370
|
+
'string',
|
|
371
|
+
'number',
|
|
372
|
+
'number',
|
|
373
|
+
'number'
|
|
374
|
+
], [
|
|
375
|
+
wuser,
|
|
376
|
+
convid,
|
|
377
|
+
call_type,
|
|
378
|
+
conv_type,
|
|
379
|
+
audio_cbr
|
|
380
|
+
]);
|
|
364
381
|
};
|
|
365
382
|
Wcall.prototype.answer = function (wuser, convid, call_type, audio_cbr) {
|
|
366
|
-
return this.em_module.ccall(
|
|
383
|
+
return this.em_module.ccall('wcall_answer', 'number', ['number', 'string', 'number', 'number'], [
|
|
384
|
+
wuser,
|
|
385
|
+
convid,
|
|
386
|
+
call_type,
|
|
387
|
+
audio_cbr
|
|
388
|
+
]);
|
|
367
389
|
};
|
|
368
390
|
Wcall.prototype.resp = function (wuser, status, reason, ctx) {
|
|
369
|
-
this.em_module.ccall(
|
|
391
|
+
this.em_module.ccall('wcall_resp', 'null', ['number', 'number', 'string', 'number'], [
|
|
392
|
+
wuser,
|
|
393
|
+
status,
|
|
394
|
+
reason,
|
|
395
|
+
ctx
|
|
396
|
+
]);
|
|
370
397
|
};
|
|
371
398
|
Wcall.prototype.configUpdate = function (wuser, err, json_str) {
|
|
372
|
-
this.em_module.ccall(
|
|
399
|
+
this.em_module.ccall('wcall_config_update', 'null', ['number', 'number', 'string'], [
|
|
400
|
+
wuser,
|
|
401
|
+
err,
|
|
402
|
+
json_str
|
|
403
|
+
]);
|
|
373
404
|
};
|
|
374
405
|
Wcall.prototype.sftResp = function (wuser, perr, buf, len, ctx) {
|
|
375
|
-
this.em_module.ccall(
|
|
406
|
+
this.em_module.ccall('wcall_sft_resp', 'null', [
|
|
407
|
+
'number',
|
|
408
|
+
'number',
|
|
409
|
+
'string',
|
|
410
|
+
'number',
|
|
411
|
+
'number'
|
|
412
|
+
], [
|
|
413
|
+
wuser,
|
|
414
|
+
perr,
|
|
415
|
+
buf,
|
|
416
|
+
len,
|
|
417
|
+
ctx
|
|
418
|
+
]);
|
|
376
419
|
};
|
|
377
420
|
Wcall.prototype.recvMsg = function (wuser, buf, len, curr_time, msg_time, convid, userid, clientid) {
|
|
378
|
-
return this.em_module.ccall(
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
], [
|
|
421
|
+
return this.em_module.ccall('wcall_recv_msg', 'number', [
|
|
422
|
+
'number',
|
|
423
|
+
'string',
|
|
424
|
+
'number',
|
|
425
|
+
'number',
|
|
426
|
+
'number',
|
|
427
|
+
'string',
|
|
428
|
+
'string',
|
|
429
|
+
'string'
|
|
430
|
+
], [
|
|
431
|
+
wuser,
|
|
432
|
+
buf,
|
|
433
|
+
len,
|
|
434
|
+
curr_time,
|
|
435
|
+
msg_time,
|
|
436
|
+
convid,
|
|
437
|
+
userid,
|
|
438
|
+
clientid
|
|
439
|
+
]);
|
|
388
440
|
};
|
|
389
441
|
Wcall.prototype.end = function (wuser, convid) {
|
|
390
|
-
this.em_module.ccall(
|
|
442
|
+
this.em_module.ccall('wcall_end', 'null', ['number', 'string'], [
|
|
443
|
+
wuser,
|
|
444
|
+
convid
|
|
445
|
+
]);
|
|
391
446
|
};
|
|
392
447
|
Wcall.prototype.reject = function (wuser, convid) {
|
|
393
|
-
return this.em_module.ccall(
|
|
448
|
+
return this.em_module.ccall('wcall_reject', 'number', ['number', 'string'], [
|
|
449
|
+
wuser,
|
|
450
|
+
convid
|
|
451
|
+
]);
|
|
394
452
|
};
|
|
395
453
|
Wcall.prototype.isVideoCall = function (wuser, convid) {
|
|
396
|
-
return this.em_module.ccall(
|
|
454
|
+
return this.em_module.ccall('wcall_is_video_call', 'number', ['number', 'string'], [
|
|
455
|
+
wuser,
|
|
456
|
+
convid
|
|
457
|
+
]);
|
|
397
458
|
};
|
|
398
459
|
Wcall.prototype.setMediaEstabHandler = function (wuser, mestabh) {
|
|
399
460
|
var _this = this;
|
|
@@ -401,8 +462,11 @@ var Wcall = /** @class */ (function () {
|
|
|
401
462
|
if (mestabh) {
|
|
402
463
|
mestabh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), peer, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), arg);
|
|
403
464
|
}
|
|
404
|
-
},
|
|
405
|
-
this.em_module.ccall(
|
|
465
|
+
}, 'vsnssn');
|
|
466
|
+
this.em_module.ccall('wcall_set_media_estab_handler', 'null', ['number', 'number'], [
|
|
467
|
+
wuser,
|
|
468
|
+
fn_mestabh
|
|
469
|
+
]);
|
|
406
470
|
};
|
|
407
471
|
Wcall.prototype.setMediaStoppedHandler = function (wuser, mstoph) {
|
|
408
472
|
var _this = this;
|
|
@@ -410,8 +474,11 @@ var Wcall = /** @class */ (function () {
|
|
|
410
474
|
if (mstoph) {
|
|
411
475
|
mstoph(convid == 0 ? null : _this.em_module.UTF8ToString(convid), arg);
|
|
412
476
|
}
|
|
413
|
-
},
|
|
414
|
-
this.em_module.ccall(
|
|
477
|
+
}, 'vsn');
|
|
478
|
+
this.em_module.ccall('wcall_set_media_stopped_handler', 'null', ['number', 'number'], [
|
|
479
|
+
wuser,
|
|
480
|
+
fn_mstoph
|
|
481
|
+
]);
|
|
415
482
|
};
|
|
416
483
|
Wcall.prototype.setDataChanEstabHandler = function (wuser, dcestabh) {
|
|
417
484
|
var _this = this;
|
|
@@ -419,11 +486,18 @@ var Wcall = /** @class */ (function () {
|
|
|
419
486
|
if (dcestabh) {
|
|
420
487
|
dcestabh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), arg);
|
|
421
488
|
}
|
|
422
|
-
},
|
|
423
|
-
this.em_module.ccall(
|
|
489
|
+
}, 'vsssn');
|
|
490
|
+
this.em_module.ccall('wcall_set_data_chan_estab_handler', 'null', ['number', 'number'], [
|
|
491
|
+
wuser,
|
|
492
|
+
fn_dcestabh
|
|
493
|
+
]);
|
|
424
494
|
};
|
|
425
495
|
Wcall.prototype.setVideoSendState = function (wuser, convid, state) {
|
|
426
|
-
this.em_module.ccall(
|
|
496
|
+
this.em_module.ccall('wcall_set_video_send_state', 'null', ['number', 'string', 'number'], [
|
|
497
|
+
wuser,
|
|
498
|
+
convid,
|
|
499
|
+
state
|
|
500
|
+
]);
|
|
427
501
|
};
|
|
428
502
|
Wcall.prototype.setVideoHandlers = function (render_frame_h, size_h, arg) {
|
|
429
503
|
var _this = this;
|
|
@@ -432,11 +506,17 @@ var Wcall = /** @class */ (function () {
|
|
|
432
506
|
if (size_h) {
|
|
433
507
|
size_h(w, h, userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), arg);
|
|
434
508
|
}
|
|
435
|
-
},
|
|
436
|
-
this.em_module.ccall(
|
|
509
|
+
}, 'vnnssn');
|
|
510
|
+
this.em_module.ccall('wcall_set_video_handlers', 'null', ['wcall_render_frame_h*', 'number', 'number'], [
|
|
511
|
+
render_frame_h,
|
|
512
|
+
fn_size_h,
|
|
513
|
+
arg
|
|
514
|
+
]);
|
|
437
515
|
};
|
|
438
516
|
Wcall.prototype.networkChanged = function (wuser) {
|
|
439
|
-
this.em_module.ccall(
|
|
517
|
+
this.em_module.ccall('wcall_network_changed', 'null', ['number'], [
|
|
518
|
+
wuser
|
|
519
|
+
]);
|
|
440
520
|
};
|
|
441
521
|
Wcall.prototype.setGroupChangedHandler = function (wuser, chgh, arg) {
|
|
442
522
|
var _this = this;
|
|
@@ -445,8 +525,12 @@ var Wcall = /** @class */ (function () {
|
|
|
445
525
|
if (chgh) {
|
|
446
526
|
chgh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), arg);
|
|
447
527
|
}
|
|
448
|
-
},
|
|
449
|
-
this.em_module.ccall(
|
|
528
|
+
}, 'vsn');
|
|
529
|
+
this.em_module.ccall('wcall_set_group_changed_handler', 'null', ['number', 'number', 'number'], [
|
|
530
|
+
wuser,
|
|
531
|
+
fn_chgh,
|
|
532
|
+
arg
|
|
533
|
+
]);
|
|
450
534
|
};
|
|
451
535
|
Wcall.prototype.setParticipantChangedHandler = function (wuser, chgh, arg) {
|
|
452
536
|
var _this = this;
|
|
@@ -455,8 +539,12 @@ var Wcall = /** @class */ (function () {
|
|
|
455
539
|
if (chgh) {
|
|
456
540
|
chgh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), mjson == 0 ? null : _this.em_module.UTF8ToString(mjson), arg);
|
|
457
541
|
}
|
|
458
|
-
},
|
|
459
|
-
this.em_module.ccall(
|
|
542
|
+
}, 'vssn');
|
|
543
|
+
this.em_module.ccall('wcall_set_participant_changed_handler', 'null', ['number', 'number', 'number'], [
|
|
544
|
+
wuser,
|
|
545
|
+
fn_chgh,
|
|
546
|
+
arg
|
|
547
|
+
]);
|
|
460
548
|
};
|
|
461
549
|
Wcall.prototype.setNetworkQualityHandler = function (wuser, netqh, interval, arg) {
|
|
462
550
|
var _this = this;
|
|
@@ -465,8 +553,13 @@ var Wcall = /** @class */ (function () {
|
|
|
465
553
|
if (netqh) {
|
|
466
554
|
netqh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), userid == 0 ? null : _this.em_module.UTF8ToString(userid), clientid == 0 ? null : _this.em_module.UTF8ToString(clientid), quality, rtt, uploss, downloss, arg);
|
|
467
555
|
}
|
|
468
|
-
},
|
|
469
|
-
return this.em_module.ccall(
|
|
556
|
+
}, 'vsssnnnnn');
|
|
557
|
+
return this.em_module.ccall('wcall_set_network_quality_handler', 'number', ['number', 'number', 'number', 'number'], [
|
|
558
|
+
wuser,
|
|
559
|
+
fn_netqh,
|
|
560
|
+
interval,
|
|
561
|
+
arg
|
|
562
|
+
]);
|
|
470
563
|
};
|
|
471
564
|
Wcall.prototype.setLogHandler = function (logh, arg) {
|
|
472
565
|
var _this = this;
|
|
@@ -475,15 +568,23 @@ var Wcall = /** @class */ (function () {
|
|
|
475
568
|
if (logh) {
|
|
476
569
|
logh(level, msg == 0 ? null : _this.em_module.UTF8ToString(msg), arg);
|
|
477
570
|
}
|
|
478
|
-
},
|
|
571
|
+
}, 'vnsn');
|
|
479
572
|
logFn = logh;
|
|
480
|
-
this.em_module.ccall(
|
|
573
|
+
this.em_module.ccall('wcall_set_log_handler', 'null', ['number', 'number'], [
|
|
574
|
+
fn_logh,
|
|
575
|
+
arg
|
|
576
|
+
]);
|
|
481
577
|
};
|
|
482
578
|
Wcall.prototype.getMute = function (wuser) {
|
|
483
|
-
return this.em_module.ccall(
|
|
579
|
+
return this.em_module.ccall('wcall_get_mute', 'number', ['number'], [
|
|
580
|
+
wuser
|
|
581
|
+
]);
|
|
484
582
|
};
|
|
485
583
|
Wcall.prototype.setMute = function (wuser, muted) {
|
|
486
|
-
this.em_module.ccall(
|
|
584
|
+
this.em_module.ccall('wcall_set_mute', 'null', ['number', 'number'], [
|
|
585
|
+
wuser,
|
|
586
|
+
muted
|
|
587
|
+
]);
|
|
487
588
|
};
|
|
488
589
|
Wcall.prototype.setMuteHandler = function (wuser, muteh, arg) {
|
|
489
590
|
if (arg === void 0) { arg = 0; }
|
|
@@ -491,8 +592,12 @@ var Wcall = /** @class */ (function () {
|
|
|
491
592
|
if (muteh) {
|
|
492
593
|
muteh(muted, arg);
|
|
493
594
|
}
|
|
494
|
-
},
|
|
495
|
-
this.em_module.ccall(
|
|
595
|
+
}, 'vnn');
|
|
596
|
+
this.em_module.ccall('wcall_set_mute_handler', 'null', ['number', 'number', 'number'], [
|
|
597
|
+
wuser,
|
|
598
|
+
fn_muteh,
|
|
599
|
+
arg
|
|
600
|
+
]);
|
|
496
601
|
};
|
|
497
602
|
Wcall.prototype.setStateHandler = function (wuser, stateh) {
|
|
498
603
|
var _this = this;
|
|
@@ -500,11 +605,17 @@ var Wcall = /** @class */ (function () {
|
|
|
500
605
|
if (stateh) {
|
|
501
606
|
stateh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), state, arg);
|
|
502
607
|
}
|
|
503
|
-
},
|
|
504
|
-
this.em_module.ccall(
|
|
608
|
+
}, 'vsnn');
|
|
609
|
+
this.em_module.ccall('wcall_set_state_handler', 'null', ['number', 'number'], [
|
|
610
|
+
wuser,
|
|
611
|
+
fn_stateh
|
|
612
|
+
]);
|
|
505
613
|
};
|
|
506
614
|
Wcall.prototype.getState = function (wuser, convid) {
|
|
507
|
-
return this.em_module.ccall(
|
|
615
|
+
return this.em_module.ccall('wcall_get_state', 'number', ['number', 'string'], [
|
|
616
|
+
wuser,
|
|
617
|
+
convid
|
|
618
|
+
]);
|
|
508
619
|
};
|
|
509
620
|
Wcall.prototype.iterateState = function (wuser, stateh, arg) {
|
|
510
621
|
var _this = this;
|
|
@@ -513,17 +624,30 @@ var Wcall = /** @class */ (function () {
|
|
|
513
624
|
if (stateh) {
|
|
514
625
|
stateh(convid == 0 ? null : _this.em_module.UTF8ToString(convid), state, arg);
|
|
515
626
|
}
|
|
516
|
-
},
|
|
517
|
-
this.em_module.ccall(
|
|
627
|
+
}, 'vsnn');
|
|
628
|
+
this.em_module.ccall('wcall_iterate_state', 'null', ['number', 'number', 'number'], [
|
|
629
|
+
wuser,
|
|
630
|
+
fn_stateh,
|
|
631
|
+
arg
|
|
632
|
+
]);
|
|
518
633
|
};
|
|
519
634
|
Wcall.prototype.propsyncRequest = function (wuser, convid) {
|
|
520
|
-
this.em_module.ccall(
|
|
635
|
+
this.em_module.ccall('wcall_propsync_request', 'null', ['number', 'string'], [
|
|
636
|
+
wuser,
|
|
637
|
+
convid
|
|
638
|
+
]);
|
|
521
639
|
};
|
|
522
640
|
Wcall.prototype.enablePrivacy = function (wuser, enabled) {
|
|
523
|
-
this.em_module.ccall(
|
|
641
|
+
this.em_module.ccall('wcall_enable_privacy', 'null', ['number', 'number'], [
|
|
642
|
+
wuser,
|
|
643
|
+
enabled
|
|
644
|
+
]);
|
|
524
645
|
};
|
|
525
646
|
Wcall.prototype.setProxy = function (host, port) {
|
|
526
|
-
return this.em_module.ccall(
|
|
647
|
+
return this.em_module.ccall('wcall_set_proxy', 'number', ['string', 'number'], [
|
|
648
|
+
host,
|
|
649
|
+
port
|
|
650
|
+
]);
|
|
527
651
|
};
|
|
528
652
|
Wcall.prototype.setReqClientsHandler = function (wuser, reqch) {
|
|
529
653
|
var _this = this;
|
|
@@ -531,11 +655,18 @@ var Wcall = /** @class */ (function () {
|
|
|
531
655
|
if (reqch) {
|
|
532
656
|
reqch(wuser, convid == 0 ? null : _this.em_module.UTF8ToString(convid), arg);
|
|
533
657
|
}
|
|
534
|
-
},
|
|
535
|
-
this.em_module.ccall(
|
|
658
|
+
}, 'vnsn');
|
|
659
|
+
this.em_module.ccall('wcall_set_req_clients_handler', 'null', ['number', 'number'], [
|
|
660
|
+
wuser,
|
|
661
|
+
fn_reqch
|
|
662
|
+
]);
|
|
536
663
|
};
|
|
537
664
|
Wcall.prototype.setClientsForConv = function (wuser, convid, json) {
|
|
538
|
-
return this.em_module.ccall(
|
|
665
|
+
return this.em_module.ccall('wcall_set_clients_for_conv', 'number', ['number', 'string', 'string'], [
|
|
666
|
+
wuser,
|
|
667
|
+
convid,
|
|
668
|
+
json
|
|
669
|
+
]);
|
|
539
670
|
};
|
|
540
671
|
Wcall.prototype.setActiveSpeakerHandler = function (wuser, activeh) {
|
|
541
672
|
var _this = this;
|
|
@@ -543,14 +674,22 @@ var Wcall = /** @class */ (function () {
|
|
|
543
674
|
if (activeh) {
|
|
544
675
|
activeh(wuser, convid == 0 ? null : _this.em_module.UTF8ToString(convid), json_levels == 0 ? null : _this.em_module.UTF8ToString(json_levels), arg);
|
|
545
676
|
}
|
|
546
|
-
},
|
|
547
|
-
this.em_module.ccall(
|
|
677
|
+
}, 'vnssn');
|
|
678
|
+
this.em_module.ccall('wcall_set_active_speaker_handler', 'null', ['number', 'number'], [
|
|
679
|
+
wuser,
|
|
680
|
+
fn_activeh
|
|
681
|
+
]);
|
|
548
682
|
};
|
|
549
683
|
Wcall.prototype.requestVideoStreams = function (wuser, convid, mode, json) {
|
|
550
|
-
return this.em_module.ccall(
|
|
684
|
+
return this.em_module.ccall('wcall_request_video_streams', 'number', ['number', 'string', 'number', 'string'], [
|
|
685
|
+
wuser,
|
|
686
|
+
convid,
|
|
687
|
+
mode,
|
|
688
|
+
json
|
|
689
|
+
]);
|
|
551
690
|
};
|
|
552
691
|
Wcall.prototype.poll = function () {
|
|
553
|
-
this.em_module.ccall(
|
|
692
|
+
this.em_module.ccall('wcall_poll', 'null', [], []);
|
|
554
693
|
};
|
|
555
694
|
Wcall.prototype.setUserMediaHandler = function (userMediaHandler) {
|
|
556
695
|
avs_pc_1.default.setUserMediaHandler(userMediaHandler);
|
|
@@ -576,6 +715,7 @@ var Wcall = /** @class */ (function () {
|
|
|
576
715
|
return Wcall;
|
|
577
716
|
}());
|
|
578
717
|
exports.Wcall = Wcall;
|
|
718
|
+
;
|
|
579
719
|
exports.getAvsInstance = function () {
|
|
580
720
|
if (instance) {
|
|
581
721
|
return Promise.resolve(instance);
|