mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-01 12:53:49 +02:00
Add metadata-based duration retrieval
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user