mirror of
https://github.com/motajs/template.git
synced 2026-11-28 17:04:30 +08:00
refactor: 客户端加载
This commit is contained in:
1 parent
fdeee99d40
commit
4fc6db3e79
55 files changed
+1699
-1234
No files matched your search
@@ -123,6 +123,12 @@ export class AudioStreamSource
|
||||
this.controller = controller;
|
||||
}
|
||||
|
||||
unpiped(controller: IStreamController): void {
|
||||
if (this.controller === controller) {
|
||||
this.controller = null;
|
||||
}
|
||||
}
|
||||
|
||||
async pump(data: Uint8Array | undefined, done: boolean): Promise<void> {
|
||||
if (!data || this.errored) return;
|
||||
if (!this.headerRecieved) {
|
||||
|
||||
Reference in new issue
Block a user