Read #EXT-X-PROGRAM-DATE-TIME, add Unix epoch-offset timestamps, parallelize HLS master playlist resolution

This commit is contained in:
Vanilagy
2026-03-04 11:08:42 +01:00
parent 6d5821aa74
commit dc4e557776
15 changed files with 263 additions and 104 deletions
+9
View File
@@ -38,6 +38,7 @@ export interface InputTrackBacking {
getName(): string | null;
getLanguageCode(): string;
getTimeResolution(): number;
getTimestampsAreRelativeToUnixEpoch(): boolean;
getDisposition(): TrackDisposition;
getGroupId(): number;
getPairingMask(): bigint;
@@ -156,6 +157,14 @@ export abstract class InputTrack {
return this._backing.getTimeResolution();
}
/**
* Whether the timestamps of this track are relative to the Unix epoch (January 1, 1970 00:00:00 UTC). When `true`,
* each timestamp maps to a definitive point in time.
*/
get timestampsAreRelativeToUnixEpoch() {
return this._backing.getTimestampsAreRelativeToUnixEpoch();
}
/** The track's disposition, i.e. information about its intended usage. */
get disposition() {
return this._backing.getDisposition();