quickvo-player 0.3.2 → 0.3.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 +2 -12
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2577,18 +2577,8 @@ class QuickVoPlayer {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
};
|
|
2579
2579
|
constructor(w = {}) {
|
|
2580
|
-
const
|
|
2581
|
-
|
|
2582
|
-
userId: "web_breathe",
|
|
2583
|
-
// "authId":"mobilePackageName" | "webRequestHostOrigin",
|
|
2584
|
-
platform: "web",
|
|
2585
|
-
version: "1.0.1"
|
|
2586
|
-
// 连接版本号
|
|
2587
|
-
}))), P = `${this.option.ws}?s=${E}&t=${Date.now()}`;
|
|
2588
|
-
let v = new WebSocket(P);
|
|
2589
|
-
console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->Breathe: ws", v);
|
|
2590
|
-
const { debug: Q = !1 } = w;
|
|
2591
|
-
this.option.debug = Q, this.prPlayer = new AA({ debug: Q }), this.prPlayer.on.demuxer.chunk = (A) => {
|
|
2580
|
+
const { debug: g = !1 } = w;
|
|
2581
|
+
this.option.debug = g, this.prPlayer = new AA({ debug: g }), this.prPlayer.on.demuxer.chunk = (E) => {
|
|
2592
2582
|
}, this.prPlayer.on.decoder.sei = this.onSEI, this.prPlayer.on.decoder.analysis = this.onAnalysis;
|
|
2593
2583
|
}
|
|
2594
2584
|
start = async (w) => (this.stop(), this.prPlayer.start(w));
|