Add metadata-based duration retrieval

This commit is contained in:
Vanilagy
2026-03-13 17:03:36 +01:00
parent c43ca025d9
commit a9a455e132
23 changed files with 517 additions and 49 deletions
+8
View File
@@ -143,6 +143,10 @@ export class AdtsDemuxer extends Demuxer {
this.lastLoadedPos = header.startPos + header.frameLength;
}
async getDurationFromMetadata(): Promise<number | null> {
return null; // No way
}
async getMimeType() {
return 'audio/aac';
}
@@ -227,6 +231,10 @@ class AdtsAudioTrackBacking implements InputAudioTrackBacking {
return null;
}
async getDurationFromMetadata() {
return null;
}
async getLiveRefreshInterval() {
return null;
}