@wireapp/avs 8.0.13 → 8.1.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/avs_core.js +22 -12
- package/dist/avs_pc.js +7 -4
- package/dist/avs_wcall.d.ts +2 -1
- package/dist/avs_wcall.js +1 -0
- package/package.json +1 -1
package/dist/avs_pc.js
CHANGED
|
@@ -135,8 +135,11 @@ var connectionsStore = (function () {
|
|
|
135
135
|
})();
|
|
136
136
|
function pc_log(level, msg, err) {
|
|
137
137
|
if (err === void 0) { err = null; }
|
|
138
|
+
em_module.ccall("pc_log", null, ["number", "string"], [level, msg]);
|
|
139
|
+
/* Log now goes through AVS for anonymization
|
|
138
140
|
if (logFn)
|
|
139
|
-
|
|
141
|
+
logFn(level, msg, err);
|
|
142
|
+
*/
|
|
140
143
|
}
|
|
141
144
|
function uinfo_from_ssrca(pc, ssrc) {
|
|
142
145
|
for (var _i = 0, _a = Object.keys(pc.users); _i < _a.length; _i++) {
|
|
@@ -1248,7 +1251,7 @@ function pc_GetLocalStats(hnd) {
|
|
|
1248
1251
|
if (uinfo) {
|
|
1249
1252
|
uinfo.audio_level = 0;
|
|
1250
1253
|
if (typeof ssrc.audioLevel !== 'undefined')
|
|
1251
|
-
uinfo.audio_level = ((ssrc.audioLevel *
|
|
1254
|
+
uinfo.audio_level = ((ssrc.audioLevel * 512.0) | 0);
|
|
1252
1255
|
em_module.ccall("pc_set_audio_level", null, ["number", "number", "number"], [pc.self, uinfo.ssrca, uinfo.audio_level]);
|
|
1253
1256
|
}
|
|
1254
1257
|
});
|
|
@@ -1258,7 +1261,7 @@ function pc_GetLocalStats(hnd) {
|
|
|
1258
1261
|
if (uinfo) {
|
|
1259
1262
|
uinfo.audio_level = 0;
|
|
1260
1263
|
if (typeof csrc.audioLevel !== 'undefined')
|
|
1261
|
-
uinfo.audio_level = ((csrc.audioLevel *
|
|
1264
|
+
uinfo.audio_level = ((csrc.audioLevel * 512.0) | 0);
|
|
1262
1265
|
em_module.ccall("pc_set_audio_level", null, ["number", "number", "number"], [pc.self, uinfo.ssrca, uinfo.audio_level]);
|
|
1263
1266
|
}
|
|
1264
1267
|
});
|
|
@@ -1300,7 +1303,7 @@ function pc_GetLocalStats(hnd) {
|
|
|
1300
1303
|
}
|
|
1301
1304
|
else if (stat.type === 'media-source') {
|
|
1302
1305
|
if (stat.kind === 'audio')
|
|
1303
|
-
self_audio_level = stat.audioLevel ? ((stat.audioLevel *
|
|
1306
|
+
self_audio_level = stat.audioLevel ? ((stat.audioLevel * 512.0) | 0) : 0;
|
|
1304
1307
|
}
|
|
1305
1308
|
});
|
|
1306
1309
|
pc.stats.recv_apkts = max_apkts;
|
package/dist/avs_wcall.d.ts
CHANGED
package/dist/avs_wcall.js
CHANGED
|
@@ -106,6 +106,7 @@ var QUALITY;
|
|
|
106
106
|
QUALITY[QUALITY["MEDIUM"] = 2] = "MEDIUM";
|
|
107
107
|
QUALITY[QUALITY["POOR"] = 3] = "POOR";
|
|
108
108
|
QUALITY[QUALITY["NETWORK_PROBLEM"] = 4] = "NETWORK_PROBLEM";
|
|
109
|
+
QUALITY[QUALITY["RECONNECTING"] = 5] = "RECONNECTING";
|
|
109
110
|
})(QUALITY = exports.QUALITY || (exports.QUALITY = {}));
|
|
110
111
|
var instance;
|
|
111
112
|
var logFn;
|
package/package.json
CHANGED