quickvo-sdk-js 0.2.8 → 0.3.0
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/index.js +11 -10
- package/dist/index.umd.cjs +1 -1
- package/dist/protos/compiled.d.ts +3730 -3730
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7743,9 +7743,16 @@ class RoomCalls extends RoomPeer {
|
|
|
7743
7743
|
try {
|
|
7744
7744
|
const { userId: e } = this.options;
|
|
7745
7745
|
if (M ? await this.changeLocalStream($) : this.removeUserMediaStreamContext(e, $), $ === "screenSharing_audio" || $ === "screenSharing_video") {
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7746
|
+
{
|
|
7747
|
+
const U = this.getUserStream(e, "screenSharing_audio").getTracks();
|
|
7748
|
+
for (const L of U)
|
|
7749
|
+
L.onended = () => this.stopPublish(["screenSharing_audio", "screenSharing_video"]);
|
|
7750
|
+
}
|
|
7751
|
+
{
|
|
7752
|
+
const U = this.getUserStream(e, "screenSharing_video").getTracks();
|
|
7753
|
+
for (const L of U)
|
|
7754
|
+
L.onended = () => this.stopPublish(["screenSharing_audio", "screenSharing_video"]);
|
|
7755
|
+
}
|
|
7749
7756
|
}
|
|
7750
7757
|
const o = this.getUserStreams(e);
|
|
7751
7758
|
this.cwsIns.emitNotify("onLocalStream", { code: 200, data: o, desc: "local stream is change." }), R(o);
|
|
@@ -7967,13 +7974,7 @@ class RoomCalls extends RoomPeer {
|
|
|
7967
7974
|
}
|
|
7968
7975
|
}
|
|
7969
7976
|
if (o.length === 0) return R(!0);
|
|
7970
|
-
await this.createOffer(), await this.
|
|
7971
|
-
event: "closeTrack",
|
|
7972
|
-
data: { sdp: this.getSdp(), tracks: o }
|
|
7973
|
-
}).then(async (A) => {
|
|
7974
|
-
const { remoteSdp: U } = A.data;
|
|
7975
|
-
await this.setRemoteDescription({ type: "answer", sdp: U });
|
|
7976
|
-
}), await this.emitNotifyUpdateUsers(), R(!0);
|
|
7977
|
+
await this.createOffer(), await this.emitNotifyUpdateUsers(), R(!0);
|
|
7977
7978
|
} catch (e) {
|
|
7978
7979
|
N(`停止订阅流: ${e.message}`);
|
|
7979
7980
|
}
|