make getSize and input source public

This commit is contained in:
Yonatan Bendahan
2025-04-15 15:09:15 +03:00
parent 69751e8bfe
commit 9738329f73
9 changed files with 19 additions and 21 deletions
+2 -2
View File
@@ -38,12 +38,12 @@ export class OggDemuxer extends Demuxer {
super(input);
// We don't need a persistent metadata reader as we read all metadata once at the start and then never again
this.reader = new OggReader(new Reader(input._source, 64 * 2 ** 20));
this.reader = new OggReader(new Reader(input.source, 64 * 2 ** 20));
}
async readMetadata() {
return this.metadataPromise ??= (async () => {
this.fileSize = await this.input._source._getSize();
this.fileSize = await this.input.source.getSize();
while (this.reader.pos < this.fileSize - MIN_PAGE_HEADER_SIZE) {
await this.reader.reader.loadRange(