Implement optimized fragmented MP4 demuxing

This commit is contained in:
David Payr
2024-12-14 21:50:51 +01:00
parent 5978110de9
commit 07689fbd8d
14 changed files with 2543 additions and 163 deletions
+2
View File
@@ -30,6 +30,8 @@ export class Input {
/** @internal */
_getDemuxer() {
return this._demuxerPromise ??= (async () => {
await this._mainReader.loadRange(0, 4096); // Load the first 4 kiB so we can determine the format
for (const format of this._formats) {
const canRead = await format._canReadInput(this);
if (canRead) {