@wireapp/avs 9.9.4 → 9.9.6

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_pc.js CHANGED
@@ -371,40 +371,6 @@ function candidateHandler(pc, cand) {
371
371
  ccallGatheringHandler(pc, sdp.type.toString(), sdp.sdp.toString());
372
372
  return;
373
373
  }
374
- if (pc_env === ENV_FIREFOX) {
375
- if (mindex != null) {
376
- var cmid = pc.cands[mindex];
377
- if (!cmid) {
378
- pc_log(LOG_LEVEL_INFO, "candidateHandler: adding mindex=".concat(mindex));
379
- pc.cands[mindex] = {
380
- mindex: mindex,
381
- hasRelay: false
382
- };
383
- }
384
- }
385
- }
386
- if (cand.type === 'relay') {
387
- var sdp = pc.rtc.localDescription;
388
- if (!sdp) {
389
- return;
390
- }
391
- if (pc_env == ENV_FIREFOX) {
392
- if (mindex != null) {
393
- var rmid = pc.cands[mindex];
394
- if (rmid)
395
- rmid.hasRelay = true;
396
- }
397
- for (var _i = 0, _a = pc.cands; _i < _a.length; _i++) {
398
- var cc = _a[_i];
399
- if (cc && !cc.hasRelay) {
400
- pc_log(LOG_LEVEL_INFO, "candidateHandler: mindex=".concat(cc.mindex, " still missing relay"));
401
- return;
402
- }
403
- }
404
- }
405
- pc_log(LOG_LEVEL_INFO, 'candidateHandler: relay(s) found, finished gathering');
406
- ccallGatheringHandler(pc, sdp.type.toString(), sdp.sdp.toString());
407
- }
408
374
  }
409
375
  function connectionHandler(pc) {
410
376
  var rtc = pc.rtc;
@@ -470,7 +436,6 @@ function pc_New(self, convidPtr, audioIvPtr, videoIvPtr, ivlen) {
470
436
  call_type: CALL_TYPE_NORMAL,
471
437
  conv_type: CONV_TYPE_ONEONONE,
472
438
  muted: false,
473
- cands: [null, null, null],
474
439
  users: {},
475
440
  iva: iva8,
476
441
  ivv: ivv8,
@@ -77,6 +77,10 @@ export declare enum STATE {
77
77
  export declare enum VSTREAMS {
78
78
  LIST = 0
79
79
  }
80
+ export declare enum MODE {
81
+ MARSHAL = 0,
82
+ DIRECT = 1
83
+ }
80
84
  export interface WcallMember {
81
85
  userid: string;
82
86
  clientid: string;
@@ -162,6 +166,8 @@ export declare class Wcall {
162
166
  processNotifications(wuser: number, processing: number): number;
163
167
  poll(): void;
164
168
  setupEx(flags: number): number;
169
+ setMode(mode: number): void;
170
+ getMode(): number;
165
171
  setUserMediaHandler(userMediaHandler: UserMediaHandler): void;
166
172
  setAudioStreamHandler(audioStreamHandler: AudioStreamHandler): void;
167
173
  setVideoStreamHandler(videoStreamHandler: VideoStreamHandler): void;
package/dist/avs_wcall.js CHANGED
@@ -17,7 +17,7 @@
17
17
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  */
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.getAvsInstance = exports.Wcall = exports.VSTREAMS = exports.STATE = exports.CONV_TYPE = exports.CALL_TYPE = exports.ENV = exports.VIDEO_STATE = exports.AUDIO_STATE = exports.LOG_LEVEL = exports.REASON = exports.QUALITY = exports.ERROR = void 0;
20
+ exports.getAvsInstance = exports.Wcall = exports.MODE = exports.VSTREAMS = exports.STATE = exports.CONV_TYPE = exports.CALL_TYPE = exports.ENV = exports.VIDEO_STATE = exports.AUDIO_STATE = exports.LOG_LEVEL = exports.REASON = exports.QUALITY = exports.ERROR = void 0;
21
21
  /* DO NOT edit this file by hand. It is generated by the AVS make
22
22
  * system and any changes you make will be lost.
23
23
  */
@@ -112,6 +112,11 @@ var VSTREAMS;
112
112
  (function (VSTREAMS) {
113
113
  VSTREAMS[VSTREAMS["LIST"] = 0] = "LIST";
114
114
  })(VSTREAMS = exports.VSTREAMS || (exports.VSTREAMS = {}));
115
+ var MODE;
116
+ (function (MODE) {
117
+ MODE[MODE["MARSHAL"] = 0] = "MARSHAL";
118
+ MODE[MODE["DIRECT"] = 1] = "DIRECT";
119
+ })(MODE = exports.MODE || (exports.MODE = {}));
115
120
  var instance;
116
121
  var logFn;
117
122
  var logHandler = function (level, msg, err) {
@@ -585,6 +590,12 @@ var Wcall = /** @class */ (function () {
585
590
  Wcall.prototype.setupEx = function (flags) {
586
591
  return this.em_module.ccall("wcall_setup_ex", "number", ["number"], [flags]);
587
592
  };
593
+ Wcall.prototype.setMode = function (mode) {
594
+ this.em_module.ccall("wcall_set_mode", "null", ["number"], [mode]);
595
+ };
596
+ Wcall.prototype.getMode = function () {
597
+ return this.em_module.ccall("wcall_get_mode", "number", [], []);
598
+ };
588
599
  Wcall.prototype.setUserMediaHandler = function (userMediaHandler) {
589
600
  avs_pc_1.default.setUserMediaHandler(userMediaHandler);
590
601
  };
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "prepack": "prettier -w src/avs_wcall.ts && tsc && cp src/*.js src/*.d.ts dist/",
22
22
  "test": "karma start"
23
23
  },
24
- "version": "9.9.4"
24
+ "version": "9.9.6"
25
25
  }