[WIP] Add majority of logic for HLS reading support

This commit is contained in:
Vanilagy
2026-01-27 14:45:44 +01:00
parent f620a328e5
commit d1fbea3e19
48 changed files with 5511 additions and 9 deletions
+4
View File
@@ -842,6 +842,10 @@ export abstract class MpegTsTrackBacking implements InputTrackBacking {
return TIMESCALE;
}
getVariant() {
return null;
}
async computeDuration(): Promise<number> {
const lastPacket = await this.getPacket(Infinity, { metadataOnly: true });
return (lastPacket?.timestamp ?? 0) + (lastPacket?.duration ?? 0);