quickvo-sdk-js 0.2.8 → 0.2.9

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 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
- const U = this.getUserStream(e, $).getTracks();
7747
- for (const L of U)
7748
- L.onended = () => this.stopPublish(["screenSharing_audio", "screenSharing_video"]);
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);