mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-01 21:03:46 +02:00
make getSize and input source public
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ export class Reader {
|
||||
constructor(public source: Source, public maxStorableBytes = Infinity) {}
|
||||
|
||||
async loadRange(start: number, end: number) {
|
||||
end = Math.min(end, await this.source._getSize());
|
||||
end = Math.min(end, await this.source.getSize());
|
||||
|
||||
if (start >= end) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user