mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-28 19:33:51 +02:00
Read #EXT-X-PROGRAM-DATE-TIME, add Unix epoch-offset timestamps, parallelize HLS master playlist resolution
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user