quickvo-sdk-js 0.5.2 → 0.5.3
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 +8 -3
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8623,13 +8623,18 @@ class RoomCalls extends RoomPeer {
|
|
|
8623
8623
|
u.includes("screenSharing_audio") && !u.includes("screenSharing_video") && (u = [...u, "screenSharing_video"]);
|
|
8624
8624
|
const e = await this.getCaller();
|
|
8625
8625
|
for (const D of u)
|
|
8626
|
-
this.getUserStream(e.id, D).getTracks().length === 0
|
|
8626
|
+
if (this.getUserStream(e.id, D).getTracks().length === 0)
|
|
8627
|
+
try {
|
|
8628
|
+
await this.setLocalStream(D, !0);
|
|
8629
|
+
} catch (j) {
|
|
8630
|
+
console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->quickvo: setLocalStream is error.", j);
|
|
8631
|
+
}
|
|
8627
8632
|
const n = [];
|
|
8628
8633
|
for (const D of u)
|
|
8629
8634
|
this.getUserStream(e.id, D).getTracks().length !== 0 && n.push(D);
|
|
8630
|
-
await this.createTrack(n), await this.replaceSenderStream(n, !
|
|
8635
|
+
await this.createTrack(n), await this.replaceSenderStream(n, !1);
|
|
8631
8636
|
const O = this.getSenderTracks(u), $ = [...e.tracks, ...O], N = await this.getCallAction($);
|
|
8632
|
-
await this.updateUsertracks(e.id, $, !0), V(this, zt).call(this, u), await V(this, Tt).call(this, N);
|
|
8637
|
+
await this.updateUsertracks(e.id, $, !0), V(this, zt).call(this, u), await V(this, Tt).call(this, N), await this.replaceSenderStream(n, !0);
|
|
8633
8638
|
{
|
|
8634
8639
|
await this.emitNotifyUpdateUsers();
|
|
8635
8640
|
const D = await this.getCaller();
|