quickvo-sdk-js 0.7.8 → 0.8.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 CHANGED
@@ -8937,15 +8937,14 @@ class RoomCalls extends RoomPeer {
8937
8937
  * @returns Promise<RoomUser>
8938
8938
  */
8939
8939
  Z(this, "publish", (a) => new Promise(async (E, _) => {
8940
+ try {
8941
+ await this.setLocalStream(a, !0);
8942
+ } catch (e) {
8943
+ console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->quickvo: setLocalStream is error.", e);
8944
+ }
8940
8945
  const k = async () => {
8941
8946
  try {
8942
- const e = await this.getCaller();
8943
- try {
8944
- await this.setLocalStream(a, !0);
8945
- } catch (q) {
8946
- console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->quickvo: setLocalStream is error.", q);
8947
- }
8948
- const n = [];
8947
+ const e = await this.getCaller(), n = [];
8949
8948
  for (const q of a) {
8950
8949
  {
8951
8950
  const P = this.getPhoneyStreams(q);
@@ -9185,7 +9184,7 @@ class QuickVO extends Room {
9185
9184
  const { state: _ } = E.data;
9186
9185
  if (_ === "closed") {
9187
9186
  const { roomId: k, userId: e } = this.options, n = { roomId: k, user: { id: e } };
9188
- this.cwsIns.sendMessage({ event: "quitRoom", data: n }), this.cwsIns.close();
9187
+ this.cwsIns.sendMessage({ event: "quitRoom", data: n }), this.cwsIns.close(), this.reportLogs("webrtc_c_timeout", "webrtc state is closed.");
9189
9188
  }
9190
9189
  };
9191
9190
  this.cwsIns.addNotify({ event: "onRoomState", callback: a }, !0);