Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/app/elements/replay/parts/parts.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,17 @@ export class ElementsPartsComponent implements OnInit {
let isFirstPush = true;

for (const item of file) {
isFirstPush = await this.fetchSection(item, sessionId, isFirstPush);
// 先拿第一个保证有东西可以播出来
isFirstPush = await this.fetchSection(file[0], sessionId, isFirstPush);

// 其他的放到异步任务中
Promise.resolve().then(async () => {
for(const item of file.slice(1)) {
await this.fetchSection(item, sessionId, isFirstPush);
}
})

// isFirstPush = await this.fetchSection(item, sessionId, isFirstPush);
}
}

Expand Down