quickvo-sdk-js 0.5.2 → 0.5.4
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 -6
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7450,7 +7450,7 @@ class RoomBase {
|
|
|
7450
7450
|
screenSharing_audio: ""
|
|
7451
7451
|
});
|
|
7452
7452
|
Z(this, "initAsyncQueue", () => {
|
|
7453
|
-
this.taskQueue.clear()
|
|
7453
|
+
this.taskQueue.clear();
|
|
7454
7454
|
});
|
|
7455
7455
|
/**
|
|
7456
7456
|
* 获取房间信息
|
|
@@ -7548,7 +7548,7 @@ class RoomBase {
|
|
|
7548
7548
|
* 处理为应用层数据
|
|
7549
7549
|
*/
|
|
7550
7550
|
Z(this, "usersFilter", (I) => ft(I, ["id", "isSelf", "joinTime", "tracks", "callAction", "callActionStr", "callActionMap", "network", "permissions", "isPublished", "updateStreams"]).sort((_, k) => _.id.localeCompare(k.id, "en")));
|
|
7551
|
-
this.initAsyncQueue();
|
|
7551
|
+
this.initAsyncQueue(), this.taskQueue.setCondition("createWs", !0), this.taskQueue.setCondition("createSession", !1), this.taskQueue.setCondition("ice", !1);
|
|
7552
7552
|
}
|
|
7553
7553
|
}
|
|
7554
7554
|
const createMutedAudioStream = () => {
|
|
@@ -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();
|
|
@@ -8859,7 +8864,7 @@ class RoomCalls extends RoomPeer {
|
|
|
8859
8864
|
return this.setRoomState("connecting"), new Promise((u) => {
|
|
8860
8865
|
const E = async () => {
|
|
8861
8866
|
try {
|
|
8862
|
-
this.taskQueue.setCondition("createSession", !1), await this.addSenders(), await this.cwsIns.sendMessage({
|
|
8867
|
+
console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->Breathe: createSession"), this.taskQueue.setCondition("createSession", !1), await this.addSenders(), await this.cwsIns.sendMessage({
|
|
8863
8868
|
event: "connectCF",
|
|
8864
8869
|
data: { sdp: this.getSdp() }
|
|
8865
8870
|
}).then(async (_) => {
|