Refactor HLS API: Get rid of specialized Manifest* classes, use Input instead. Add unhydrated InputTracks, InputTrack compatibility, InputTrack queries

This commit is contained in:
Vanilagy
2026-03-03 15:28:26 +01:00
parent b0604150c1
commit cfb5418fa0
29 changed files with 1841 additions and 904 deletions
+16 -4
View File
@@ -444,6 +444,22 @@ class OggAudioTrackBacking implements InputAudioTrackBacking {
return this.bitstream.sampleRate;
}
getGroupId() {
return this.getId();
}
getPairingMask() {
return 1n;
}
getBitrate() {
return null;
}
getAverageBitrate() {
return null;
}
getCodec() {
return this.bitstream.codecInfo.codec;
}
@@ -452,10 +468,6 @@ class OggAudioTrackBacking implements InputAudioTrackBacking {
return null;
}
getVariant() {
return null;
}
async getDecoderConfig(): Promise<AudioDecoderConfig | null> {
assert(this.bitstream.codecInfo.codec);