mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 22:03:49 +02:00
Implement MP3 demuxer
This commit is contained in:
@@ -27,6 +27,10 @@ export class Reader {
|
||||
async loadRange(start: number, end: number) {
|
||||
end = Math.min(end, await this.source._getSize());
|
||||
|
||||
if (start >= end) {
|
||||
return;
|
||||
}
|
||||
|
||||
const matchingLoadingSegment = this.loadingSegments.find(x => x.start <= start && x.end >= end);
|
||||
if (matchingLoadingSegment) {
|
||||
// Simply wait for the existing promise to finish to avoid loading the same range twice
|
||||
|
||||
Reference in New Issue
Block a user