@voicenter-team/opensips-js 1.0.106 → 1.0.108
Sign up to get free protection for your applications and to get access to all the features.
package/dist/opensips-js.es.js
CHANGED
@@ -72934,7 +72934,7 @@ class Cg extends Ds.EventEmitter {
|
|
72934
72934
|
t.stop();
|
72935
72935
|
}), Object.values(this.memberList).forEach((t) => {
|
72936
72936
|
t.hangup(), this._detachMember(t);
|
72937
|
-
});
|
72937
|
+
}), this._ua.emit("conferenceEnd", this.id);
|
72938
72938
|
}
|
72939
72939
|
async processPlugins() {
|
72940
72940
|
const e = this._ua.processStreamPlugins;
|
@@ -74747,7 +74747,9 @@ class Pw extends G$ {
|
|
74747
74747
|
this._receiveInviteResponse(s);
|
74748
74748
|
}
|
74749
74749
|
});
|
74750
|
-
await this.generateStream(),
|
74750
|
+
if (await this.generateStream(), console.log("this.stream", this.stream), !this.stream || !this.stream.getTracks().length)
|
74751
|
+
return;
|
74752
|
+
this.addTracks(this.stream.getTracks());
|
74751
74753
|
const t = {
|
74752
74754
|
audio: !1,
|
74753
74755
|
// offerToReceiveAudio
|
@@ -74851,7 +74853,7 @@ class Pw extends G$ {
|
|
74851
74853
|
}), this.session._ua.emit("pluginDetach", this.name);
|
74852
74854
|
}
|
74853
74855
|
async stopMedia() {
|
74854
|
-
this._connection && (this._connection.close(), this._connection = null);
|
74856
|
+
this._connection && (this._connection.close(), this._connection = null), this.stream && (this.stream = null);
|
74855
74857
|
}
|
74856
74858
|
async stop() {
|
74857
74859
|
await this.session.stopProcessPlugins(this.type);
|
@@ -74874,12 +74876,12 @@ class l_e extends Pw {
|
|
74874
74876
|
async generateStream() {
|
74875
74877
|
try {
|
74876
74878
|
this.stream = await navigator.mediaDevices.getDisplayMedia(), this.stream.getVideoTracks()[0].onended = () => {
|
74877
|
-
this.
|
74879
|
+
this.kill();
|
74878
74880
|
}, this.session._ua.emit("startScreenShare", {
|
74879
74881
|
stream: this.stream
|
74880
74882
|
});
|
74881
74883
|
} catch (e) {
|
74882
|
-
|
74884
|
+
this.kill(), console.error(e);
|
74883
74885
|
}
|
74884
74886
|
return this.stream;
|
74885
74887
|
}
|