quickvo-sdk-js 0.3.0 → 0.3.1

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
@@ -7567,8 +7567,8 @@ class RoomPeer extends RoomUsers {
7567
7567
  K(this, "closeUserTracks", async ($, M = [], R = !1) => {
7568
7568
  const N = [];
7569
7569
  for (const U of M) {
7570
- const { trackName: L } = U;
7571
- N.push(L);
7570
+ const { trackName: L, msid: F } = U;
7571
+ N.push(L), F && N.push(F);
7572
7572
  }
7573
7573
  const e = (U) => N.includes(U), o = await this.getUser($);
7574
7574
  if (!o) return;
@@ -7730,7 +7730,7 @@ class RoomCalls extends RoomPeer {
7730
7730
  constructor() {
7731
7731
  super();
7732
7732
  // sdk服务版本
7733
- K(this, "sdk_service_version", "1.0.3");
7733
+ K(this, "sdk_service_version", "1.0.2");
7734
7734
  at(this, Ot, !0);
7735
7735
  /**
7736
7736
  * 设置本地流
@@ -7974,7 +7974,13 @@ class RoomCalls extends RoomPeer {
7974
7974
  }
7975
7975
  }
7976
7976
  if (o.length === 0) return R(!0);
7977
- await this.createOffer(), await this.emitNotifyUpdateUsers(), R(!0);
7977
+ await this.createOffer(), await this.cwsIns.sendMessage({
7978
+ event: "closeTrack",
7979
+ data: { sdp: this.getSdp(), tracks: o }
7980
+ }).then(async (A) => {
7981
+ const { remoteSdp: U } = A.data;
7982
+ await this.setRemoteDescription({ type: "answer", sdp: U });
7983
+ }), await this.emitNotifyUpdateUsers(), R(!0);
7978
7984
  } catch (e) {
7979
7985
  N(`停止订阅流: ${e.message}`);
7980
7986
  }