@voicenter-team/opensips-js 1.0.115 → 1.0.117
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/opensips-js.es.js
CHANGED
@@ -74878,7 +74878,10 @@ class l_e extends Pw {
|
|
74878
74878
|
this.stream = await navigator.mediaDevices.getDisplayMedia(), this.stream.getVideoTracks()[0].onended = () => {
|
74879
74879
|
this.kill();
|
74880
74880
|
}, this.session._ua.emit("startScreenShare", {
|
74881
|
-
stream: this.stream
|
74881
|
+
stream: this.stream,
|
74882
|
+
handleId: this.handleId,
|
74883
|
+
sender: "me",
|
74884
|
+
type: "publisher"
|
74882
74885
|
});
|
74883
74886
|
} catch (e) {
|
74884
74887
|
this.kill(), console.error(e);
|
@@ -82377,10 +82380,10 @@ class Ub {
|
|
82377
82380
|
this.stage.width() < t.width ? (n = this.stage.width(), i = this.stage.width() / s) : (n = t.width, i = t.width / s), console.log("imageWidth", n), console.log("imageHeight", i);
|
82378
82381
|
const a = new Tc.Image({
|
82379
82382
|
image: t,
|
82380
|
-
x: (this.stage.width() -
|
82381
|
-
// Center horizontally
|
82382
|
-
y: (this.stage.height() -
|
82383
|
-
// Center vertically
|
82383
|
+
x: (this.stage.width() - n) / 2,
|
82384
|
+
//(this.stage.width() - imageObj.width) / 2, // Center horizontally
|
82385
|
+
y: (this.stage.height() - i) / 2,
|
82386
|
+
//(this.stage.height() - imageObj.height) / 2, // Center vertically
|
82384
82387
|
width: n,
|
82385
82388
|
height: i
|
82386
82389
|
});
|