Add support for unsized sources, add ReadableStreamSource, fix WAVE packet lookup

This commit is contained in:
Vanilagy
2025-09-02 16:39:38 +02:00
parent 4b3fb34a95
commit ef95960e13
14 changed files with 792 additions and 172 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export class Input<S extends Source = Source> {
/** @internal */
_getDemuxer() {
return this._demuxerPromise ??= (async () => {
this._reader.fileSize = await this._source.getSize();
this._reader.fileSize = await this._source.getSizeOrNull();
for (const format of this._formats) {
const canRead = await format._canReadInput(this);