mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 22:03:49 +02:00
Implement optimized fragmented MP4 demuxing
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user