[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
+7
View File
@@ -15,6 +15,7 @@ import { assert, Rotation } from './misc';
import { TrackType } from './output';
import { EncodedPacket, PacketType } from './packet';
import { TrackDisposition } from './metadata';
import { ManifestInputVariant } from './manifest-input-variant';
/**
* Contains aggregate statistics about the encoded packets of a track.
@@ -39,6 +40,8 @@ export interface InputTrackBacking {
getLanguageCode(): string;
getTimeResolution(): number;
getDisposition(): TrackDisposition;
getVariant(): ManifestInputVariant | null;
getFirstTimestamp(): Promise<number>;
computeDuration(): Promise<number>;
@@ -146,6 +149,10 @@ export abstract class InputTrack {
return this._backing.getDisposition();
}
get variant() {
return this._backing.getVariant();
}
/**
* Returns the start timestamp of the first packet of this track, in seconds. While often near zero, this value
* may be positive or even negative. A negative starting timestamp means the track's timing has been offset. Samples