quickvo-sdk-js 0.7.9 → 0.8.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 +8 -9
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7214,8 +7214,8 @@ class CallsWebSocket {
|
|
|
7214
7214
|
// 是否需要重连
|
|
7215
7215
|
at(this, Pt, (I) => {
|
|
7216
7216
|
let a = !0;
|
|
7217
|
-
const { code: E = 1e3
|
|
7218
|
-
return E === 1e3 && (
|
|
7217
|
+
const { code: E = 1e3 } = I;
|
|
7218
|
+
return E === 1e3 && (a = !1), a;
|
|
7219
7219
|
});
|
|
7220
7220
|
// 重连成功
|
|
7221
7221
|
at(this, Lt, async (I) => {
|
|
@@ -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);
|