Fix SourceRef race conditions, fix "source" and "target" getter returning unused instances, add missing validation, make "getDurationFromMetadata" only exist on tracks, fix examples, expand media player to support live playback, change the signatures of some Input APIs

This commit is contained in:
Vanilagy
2026-04-10 13:38:14 +02:00
parent 0813bcab28
commit aa810fc433
24 changed files with 493 additions and 476 deletions
+1 -5
View File
@@ -143,10 +143,6 @@ 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';
}
@@ -232,7 +228,7 @@ class AdtsAudioTrackBacking implements InputAudioTrackBacking {
}
async getDurationFromMetadata() {
return null;
return null; // No way
}
async getLiveRefreshInterval() {