mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 11:23:45 +02:00
Add onread callback
This commit is contained in:
@@ -54,6 +54,7 @@ export class Reader {
|
||||
}
|
||||
}
|
||||
|
||||
this.source.onread?.({ start, end });
|
||||
const bytesPromise = this.source._read(start, end);
|
||||
const loadingSegment: LoadingSegment = { start, end, promise: bytesPromise };
|
||||
this.loadingSegments.push(loadingSegment);
|
||||
|
||||
Reference in New Issue
Block a user