@voicenter-team/opensips-js 1.0.120 → 1.0.122

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.
@@ -72983,7 +72983,7 @@ class Cg extends Ds.EventEmitter {
72983
72983
  stopProcessPlugins(e) {
72984
72984
  const t = this._ua.processStreamPlugins.filter((n) => n.type === e);
72985
72985
  for (const n of t)
72986
- n.running && n.terminate();
72986
+ n.running && n.kill();
72987
72987
  }
72988
72988
  /**
72989
72989
  * Reception of Response for Initial INVITE
@@ -82450,26 +82450,27 @@ class Wy extends Dw {
82450
82450
  n.style.setProperty("position", "relative"), n.style.setProperty("margin", "auto 0");
82451
82451
  const { width: i, height: s } = this.getAspectRatioDimensions(e, t);
82452
82452
  let a = i, o = s;
82453
+ const u = this.selectors.document.getElementById(this.selectors.drawerContainer);
82453
82454
  this.screenShareKonvaDrawer = new Ub({
82454
- container: this.selectors.drawerContainer,
82455
+ container: u,
82455
82456
  width: a,
82456
82457
  height: o
82457
82458
  });
82458
- const u = this.screenShareKonvaDrawer.addLayer();
82459
- this.screenShareKonvaDrawer.initFreeDrawing(u);
82460
- const c = this.selectors.document.getElementById(this.selectors.drawerContainer), d = c.querySelector("canvas"), p = c.querySelector(".konvajs-content"), m = this.selectors.document.getElementById(this.selectors.compositeCanvas);
82461
- m.style.setProperty("position", "absolute"), m.style.setProperty("top", "0"), m.style.setProperty("left", "0");
82462
- const _ = m.getContext("2d"), y = () => {
82463
- const { width: w, height: x } = this.getAspectRatioDimensions(e, t);
82464
- a = w, o = x, d.width = w, d.height = x, d.style.width = `${w}px`, d.style.height = `${x}px`, p.style.width = `${w}px`, p.style.height = `${x}px`, n.style.height = `${x}px`, m.width = w, m.height = x;
82459
+ const c = this.screenShareKonvaDrawer.addLayer();
82460
+ this.screenShareKonvaDrawer.initFreeDrawing(c);
82461
+ const d = this.selectors.document.getElementById(this.selectors.drawerContainer), p = d.querySelector("canvas"), m = d.querySelector(".konvajs-content"), _ = this.selectors.document.getElementById(this.selectors.compositeCanvas);
82462
+ _.style.setProperty("position", "absolute"), _.style.setProperty("top", "0"), _.style.setProperty("left", "0");
82463
+ const y = _.getContext("2d"), b = () => {
82464
+ const { width: x, height: E } = this.getAspectRatioDimensions(e, t);
82465
+ a = x, o = E, p.width = x, p.height = E, p.style.width = `${x}px`, p.style.height = `${E}px`, m.style.width = `${x}px`, m.style.height = `${E}px`, n.style.height = `${E}px`, _.width = x, _.height = E;
82465
82466
  };
82466
- y(), window.addEventListener("resize", () => {
82467
- y(), this.screenShareKonvaDrawer.addWakeupLine(u);
82467
+ b(), window.addEventListener("resize", () => {
82468
+ b(), this.screenShareKonvaDrawer.addWakeupLine(c);
82468
82469
  });
82469
- const b = this.video, T = () => {
82470
- _.drawImage(b, 0, 0, a, o), _.drawImage(d, 0, 0, a, o), requestAnimationFrame(T);
82470
+ const T = this.video, w = () => {
82471
+ y.drawImage(T, 0, 0, a, o), y.drawImage(p, 0, 0, a, o), requestAnimationFrame(w);
82471
82472
  };
82472
- return T(), m.captureStream(30);
82473
+ return w(), _.captureStream(30);
82473
82474
  }
82474
82475
  /**
82475
82476
  * Stops stream processing